Adds comments to chronicles issue

This commit is contained in:
Ben 2024-04-26 10:20:09 +02:00
parent 6ddda0f138
commit 388be95f68
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
2 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,7 @@ proc fromJson*[T: ref object or object](_: type T, json: JsonNode): ?!T =
let isOptionalValue = typeof(value) is Option
var skip = false # workaround for 'continue' not supported in a 'fields' loop
# logScope moved into proc due to chronicles issue: https://github.com/status-im/nim-chronicles/issues/148
logScope:
topics = "serde json deserialization"

View File

@ -96,6 +96,7 @@ proc `%`*[T: object or ref object](obj: T): JsonNode =
let hasSerialize = value.hasCustomPragma(serialize)
var skip = false # workaround for 'continue' not supported in a 'fields' loop
# logScope moved into proc due to chronicles issue: https://github.com/status-im/nim-chronicles/issues/148
logScope:
topics = "serde json serialization"