From 2f761833bd32bc1365721472ed02643a36cbc9c1 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sun, 6 Jul 2025 04:12:47 -0500 Subject: [PATCH] Use `message` for structures message contents, not `msg`. I like `msg`, but `message` is more common and likely to the more expected name. --- src/namespaced_logging.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/namespaced_logging.nim b/src/namespaced_logging.nim index 88fd39a..54b5d18 100644 --- a/src/namespaced_logging.nim +++ b/src/namespaced_logging.nim @@ -440,7 +440,7 @@ proc log*(l: Logger, lvl: Level, msg: JsonNode) {.gcsafe.} = error: none[ref Exception](), timestamp: now(), message: - if msg.hasKey("msg"): msg["msg"].getStr + if msg.hasKey("message"): msg["message"].getStr else: "", additionalData: msg))