From: rinpatch Date: Fri, 18 Sep 2020 13:09:37 +0000 (+0300) Subject: FedSockets: fix log spam on cached rejects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=26c571df339ebfdadf760f75871b9343131a2d81;p=akkoma FedSockets: fix log spam on cached rejects --- diff --git a/lib/pleroma/web/fed_sockets/fed_sockets.ex b/lib/pleroma/web/fed_sockets/fed_sockets.ex index 035d54796..1fd5899c8 100644 --- a/lib/pleroma/web/fed_sockets/fed_sockets.ex +++ b/lib/pleroma/web/fed_sockets/fed_sockets.ex @@ -104,6 +104,9 @@ defmodule Pleroma.Web.FedSockets do Logger.debug("fedsocket found in cache - #{inspect(address)}") {:ok, socket} + {:cache, {:error, :rejected} = e} -> + e + {:connect, {:error, _host}} -> Logger.debug("set host rejected for - #{inspect(address)}") FedRegistry.set_host_rejected(address)