fix: use exception `msg` field in logs

This commit is contained in:
Dmitriy Ryajov 2019-11-29 13:46:52 -06:00 committed by zah
parent 9e437a681b
commit a5b051a14f
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ proc readLoop(sconn: SecureConnection, stream: BufferStream) {.async.} =
let msg = await sconn.readMessage() let msg = await sconn.readMessage()
await stream.pushTo(msg) await stream.pushTo(msg)
except CatchableError as exc: except CatchableError as exc:
trace "exception in secio", exc = exc trace "exception in secio", exc = exc.msg
return return
finally: finally:
trace "ending secio readLoop" trace "ending secio readLoop"