Tweak: don't overshadow msg in inner context.

This commit is contained in:
2026-01-09 18:45:33 -06:00
parent 79b9fe20ac
commit 6b49db8dd2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@jdbernard/logging",
"version": "2.3.1",
"version": "2.3.2",
"description": "Simple Javascript logging service.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
+2 -2
View File
@@ -68,9 +68,9 @@ export class ConsoleLogAppender implements LogAppender {
logMethod(fmtMsg);
}
} else {
const { msg, _err, _stacktrace, ...rest } = fmtMsg;
const { msg: innerMsg, _err, _stacktrace, ...rest } = fmtMsg;
const summary = `${LogLevel[msg.level]} -- ${msg.scope}: ${
msg ?? fmtMsg.method
innerMsg ?? fmtMsg.method
}\n`;
if (msg.err || msg.stacktrace) {