From a5b051a14f66e16c40513ceac603d3406b6f8731 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 29 Nov 2019 13:46:52 -0600 Subject: [PATCH] fix: use exception `msg` field in logs --- libp2p/protocols/secure/secio.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/secure/secio.nim b/libp2p/protocols/secure/secio.nim index 10557ac..b92a3fc 100644 --- a/libp2p/protocols/secure/secio.nim +++ b/libp2p/protocols/secure/secio.nim @@ -405,7 +405,7 @@ proc readLoop(sconn: SecureConnection, stream: BufferStream) {.async.} = let msg = await sconn.readMessage() await stream.pushTo(msg) except CatchableError as exc: - trace "exception in secio", exc = exc + trace "exception in secio", exc = exc.msg return finally: trace "ending secio readLoop"