From: Steffen Arntz Date: Wed, 8 Jan 2025 16:57:54 +0000 (+0100) Subject: logger.c fix: malformed JSON template X-Git-Tag: 21.7.0-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564552936176494bf6d0af262daa88c873bc8fdc;p=thirdparty%2Fasterisk.git logger.c fix: malformed JSON template this typo was mentioned before, but never got fixed. https://community.asterisk.org/t/logger-cannot-log-long-json-lines-properly/87618/6 (cherry picked from commit ffbe9bf31e187fb6ca7ccd9858584c59330acd34) --- diff --git a/main/logger.c b/main/logger.c index 72d6962456..7d0b3b7718 100644 --- a/main/logger.c +++ b/main/logger.c @@ -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,