Skip to content

Commit

Permalink
msg is a reserved property name in Chronicles (#321)
Browse files Browse the repository at this point in the history
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:

status-im/nim-chronicles#86
  • Loading branch information
zah authored Aug 7, 2020
1 parent 7c2ab38 commit fbb59c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libp2p/protocols/pubsub/pubsubpeer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -158,7 +158,7 @@ proc send*(
proc sendToRemote() {.async.} =
logScope:
peer = p.id
msg = shortLog(msg)
rpcMsg = shortLog(msg)

trace "about to send message"

Expand Down

0 comments on commit fbb59c3

Please sign in to comment.