From 54d740949e72f9502654ab5fe16e4ad642ee2f25 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sun, 8 Sep 2019 00:32:57 -0600 Subject: [PATCH] debug logging --- libp2p/multistream.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libp2p/multistream.nim b/libp2p/multistream.nim index 4732002..1ccc173 100644 --- a/libp2p/multistream.nim +++ b/libp2p/multistream.nim @@ -12,7 +12,8 @@ import chronos import connection, varint, vbuffer, - protocols/protocol + protocols/protocol, + helpers/debug const MsgSize* = 64*1024 const Codec* = "/multistream/1.0.0" @@ -125,7 +126,7 @@ proc handle*(m: MultisteamSelect, conn: Connection) {.async, gcsafe.} = await h.protocol.handler(conn, ms) break main except Exception as exc: - echo exc.msg # TODO: Logging + debug exc.msg # TODO: Logging await conn.write(m.na) proc addHandler*[T: LPProtocol](m: MultisteamSelect,