Skip to content

Commit

Permalink
Demote connection establishment failure logging
Browse files Browse the repository at this point in the history
Logging these as error by default is redundant with the excpetion itself which we propagate through
the error-deferred.
  • Loading branch information
DerGuteMoritz committed Apr 5, 2024
1 parent 8018599 commit 9ef3fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/http.clj
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@
;; Unintuitively, this type doesn't inherit from TimeoutException
(instance? ConnectTimeoutException e))
(do
(log/error e "Timed out waiting for connection to be established")
(log/trace "Timed out waiting for connection to be established")
(d/error-deferred (ConnectionTimeoutException. ^Throwable e)))
(do
(log/error e "Connection failure")
(log/trace "Connection establishment failed")
(d/error-deferred e)))))

;; actually make the request now
Expand Down

0 comments on commit 9ef3fb6

Please sign in to comment.