`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
This commit is contained in:
zah 2020-08-08 01:46:00 +03:00 committed by GitHub
parent 7c2ab38da1
commit fbb59c3638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ proc send*(
timeout: Duration = DefaultSendTimeout) {.async.} = timeout: Duration = DefaultSendTimeout) {.async.} =
logScope: logScope:
peer = p.id peer = p.id
msg = shortLog(msg) rpcMsg = shortLog(msg)
trace "sending msg to peer" trace "sending msg to peer"
@ -158,7 +158,7 @@ proc send*(
proc sendToRemote() {.async.} = proc sendToRemote() {.async.} =
logScope: logScope:
peer = p.id peer = p.id
msg = shortLog(msg) rpcMsg = shortLog(msg)
trace "about to send message" trace "about to send message"