From 8b2709dec5c85289e94c68bc0a5ef5a5b3e97868 Mon Sep 17 00:00:00 2001 From: John Harris Date: Tue, 8 Oct 2024 09:29:45 +0100 Subject: [PATCH] Show stack when debugging client connection failure (#176) --- src/amqproxy/server.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqproxy/server.cr b/src/amqproxy/server.cr index bc95f54..7bb1095 100644 --- a/src/amqproxy/server.cr +++ b/src/amqproxy/server.cr @@ -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