From 9e5adf31c016e9702e0fddc5b945d7b095696a32 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 28 Jun 2024 10:22:46 -0400 Subject: [PATCH] Change Gun connection pool logs to debug --- changelog.d/gun-logs-debug.skip | 0 lib/pleroma/telemetry/logger.ex | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changelog.d/gun-logs-debug.skip diff --git a/changelog.d/gun-logs-debug.skip b/changelog.d/gun-logs-debug.skip new file mode 100644 index 000000000..e69de29bb diff --git a/lib/pleroma/telemetry/logger.ex b/lib/pleroma/telemetry/logger.ex index 9998d8185..31ce3cc20 100644 --- a/lib/pleroma/telemetry/logger.ex +++ b/lib/pleroma/telemetry/logger.ex @@ -39,7 +39,7 @@ defmodule Pleroma.Telemetry.Logger do _, _ ) do - Logger.error(fn -> + Logger.debug(fn -> "Connection pool failed to reclaim any connections due to all of them being in use. It will have to drop requests for opening connections to new hosts" end) end @@ -70,7 +70,7 @@ defmodule Pleroma.Telemetry.Logger do %{key: key}, _ ) do - Logger.warning(fn -> + Logger.debug(fn -> "Pool worker for #{key}: Client #{inspect(client_pid)} died before releasing the connection with #{inspect(reason)}" end) end