diff options
author | Miloslav Trmač <mitr@redhat.com> | 2012-08-24 19:28:59 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-26 12:21:28 +0200 |
commit | e48728e80e6ce7b94319363581040774067de0fe (patch) | |
tree | ceaf43df15d8a2f9ca9035588af632f8d03c8f10 /runtime/msg.c | |
parent | 7580b8c954ad2291198c52b7bc50ae7a41be65a5 (diff) | |
download | rsyslog-e48728e80e6ce7b94319363581040774067de0fe.tar.gz rsyslog-e48728e80e6ce7b94319363581040774067de0fe.tar.xz rsyslog-e48728e80e6ce7b94319363581040774067de0fe.zip |
INCOMPATIBLE: use :, not =, as separator for jsonf
JSON fields are "name":value, not "name"=value. Therefore change the
jsonf flag to use a colon.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'runtime/msg.c')
-rw-r--r-- | runtime/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c index da751dba..61c2f87b 100644 --- a/runtime/msg.c +++ b/runtime/msg.c @@ -2518,7 +2518,7 @@ jsonField(struct templateEntry *pTpe, uchar **ppRes, unsigned short *pbMustBeFre dst = es_newStr(buflen+es_strlen(pTpe->data.field.fieldName)+15); es_addChar(&dst, '"'); es_addStr(&dst, pTpe->data.field.fieldName); - es_addBufConstcstr(&dst, "\"=\""); + es_addBufConstcstr(&dst, "\":\""); CHKiRet(jsonAddVal(pSrc, buflen, &dst)); es_addChar(&dst, '"'); |