aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-02-21 12:53:40 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-02-21 12:53:40 +0300
commitad8f26c0a4a0a579e93547e78313d3e4ecef6ed5 (patch)
treec51fdef9ed22d32911701804dcb6fa87707a22a9 /lib
parenta03c420b84d9901be70520d8c027ccb53449990d (diff)
downloadpleroma-ad8f26c0a4a0a579e93547e78313d3e4ecef6ed5.tar.gz
more info in Connections.checkin timout errors
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