Skip to content

Commit

Permalink
Show stack when debugging client connection failure (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-m-harris authored Oct 8, 2024
1 parent e9e0162 commit 8b2709d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amqproxy/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module AMQProxy
c.read_loop(channel_pool)
end
rescue ex # only raise from constructor, when negotating
Log.debug { "Client connection failure (#{remote_address}) #{ex.inspect}" }
Log.debug(exception: ex) { "Client connection failure (#{remote_address}) #{ex.inspect}" }
ensure
socket.close rescue nil
end
Expand Down

0 comments on commit 8b2709d

Please sign in to comment.