From fbb59c3638c333a8773e070f76031bfccda0ac3a Mon Sep 17 00:00:00 2001 From: zah Date: Sat, 8 Aug 2020 01:46:00 +0300 Subject: [PATCH] `msg` is a reserved property name in Chronicles (#321) Every Chronicles log record has an existing `msg` property matching the static string supplied in the log statement. Thus, it's currently not possible to use `msg` as the name of a user property: https://github.com/status-im/nim-chronicles/issues/86 --- libp2p/protocols/pubsub/pubsubpeer.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/protocols/pubsub/pubsubpeer.nim b/libp2p/protocols/pubsub/pubsubpeer.nim index c215c38..2b001c2 100644 --- a/libp2p/protocols/pubsub/pubsubpeer.nim +++ b/libp2p/protocols/pubsub/pubsubpeer.nim @@ -132,7 +132,7 @@ proc send*( timeout: Duration = DefaultSendTimeout) {.async.} = logScope: peer = p.id - msg = shortLog(msg) + rpcMsg = shortLog(msg) trace "sending msg to peer" @@ -158,7 +158,7 @@ proc send*( proc sendToRemote() {.async.} = logScope: peer = p.id - msg = shortLog(msg) + rpcMsg = shortLog(msg) trace "about to send message"