aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/http/adapter/gun.ex13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/pleroma/http/adapter/gun.ex b/lib/pleroma/http/adapter/gun.ex
index f1018dd8d..fc40b324a 100644
--- a/lib/pleroma/http/adapter/gun.ex
+++ b/lib/pleroma/http/adapter/gun.ex
@@ -115,11 +115,16 @@ defmodule Pleroma.HTTP.Adapter.Gun do
opts
catch
- :exit, {:timeout, _} ->
+ :exit, {:timeout, {_, operation, [_, {method, _}, _]}} ->
+ messages_len =
+ :gun_connections
+ |> Process.whereis()
+ |> Process.info(:message_queue_len)
+
Logger.warn(
- "Gun connections pool checkin with timeout error #{uri.scheme}://#{
- Connections.compose_uri(uri)
- }"
+ "Gun connections pool checkin with timeout error for #{operation} #{method} #{
+ uri.scheme
+ }://#{Connections.compose_uri(uri)}. Messages length: #{messages_len}"
)
opts