Skip to content

Commit 9ef3fb6

Browse files
committed
Demote connection establishment failure logging
Logging these as error by default is redundant with the excpetion itself which we propagate through the error-deferred.
1 parent 8018599 commit 9ef3fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aleph/http.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@
404404
;; Unintuitively, this type doesn't inherit from TimeoutException
405405
(instance? ConnectTimeoutException e))
406406
(do
407-
(log/error e "Timed out waiting for connection to be established")
407+
(log/trace "Timed out waiting for connection to be established")
408408
(d/error-deferred (ConnectionTimeoutException. ^Throwable e)))
409409
(do
410-
(log/error e "Connection failure")
410+
(log/trace "Connection establishment failed")
411411
(d/error-deferred e)))))
412412

413413
;; actually make the request now

0 commit comments

Comments
 (0)