Skip to content

Commit

Permalink
chore: Don't log disconnects (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsanders authored Jul 17, 2020
1 parent ebbfdba commit 2923500
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/exq/redis/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ defmodule Exq.Redis.Connection do
defp handle_response({:error, %{message: "NOSCRIPT" <> _rest}} = error, _) do
error
end

defp handle_response({:error, %Redix.ConnectionError{reason: :disconnected}} = error, _) do
error
end

defp handle_response({:error, message} = error, _) do
Logger.error(inspect(message))
Expand Down

0 comments on commit 2923500

Please sign in to comment.