Skip to content

Commit 07a4586

Browse files
committed
Drop redundant error handling and logging
The generic "connection failed" catch handler is redundant with the one on the `result` deferred. The same is the case for the logging in the "connection timeout" catch handler.
1 parent feebe2c commit 07a4586

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/aleph/http.clj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,8 @@
397397
;; connection timeout triggered
398398
(d/catch' TimeoutException
399399
(fn [^Throwable e]
400-
(log/error e "Timed out waiting for connection to be established")
401400
(d/error-deferred (ConnectionTimeoutException. e))))
402401

403-
;; connection failed, bail out
404-
(d/catch'
405-
(fn [e]
406-
(log/error e "Connection failure")
407-
(d/error-deferred e)))
408-
409402
;; actually make the request now
410403
(d/chain'
411404
(fn [conn']

0 commit comments

Comments
 (0)