]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
logger.c fix: malformed JSON template
authorSteffen Arntz <winrootkit@gmail.com>
Wed, 8 Jan 2025 16:57:54 +0000 (17:57 +0100)
committerSteffen Arntz <winrootkit@gmail.com>
Fri, 10 Jan 2025 18:09:38 +0000 (18:09 +0000)
this typo was mentioned before, but never got fixed.
https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618/6

main/logger.c

index 72d6962456a5ec45ce93ca5f96c5c97a16f1b964..7d0b3b77182d0860fec0d286f9815144d9c520ab 100644 (file)
@@ -287,7 +287,7 @@ static int format_log_json(struct logchannel *channel, struct logmsg *msg, char
        }
 
        json = ast_json_pack("{s: s, s: s, "
-               "s: {s: i, s: s} "
+               "s: {s: i, s: s}, "
                "s: {s: {s: s, s: s, s: i}, "
                "s: s, s: s} }",
                "hostname", ast_config_AST_SYSTEM_NAME,