diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-02-21 12:53:40 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-02-21 12:53:40 +0300 |
commit | ad8f26c0a4a0a579e93547e78313d3e4ecef6ed5 (patch) | |
tree | c51fdef9ed22d32911701804dcb6fa87707a22a9 /lib | |
parent | a03c420b84d9901be70520d8c027ccb53449990d (diff) | |
download | pleroma-ad8f26c0a4a0a579e93547e78313d3e4ecef6ed5.tar.gz |
more info in Connections.checkin timout errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/http/adapter/gun.ex | 13 |
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 |