]> git.ipfire.org Git - thirdparty/collectd.git/commit
format_json, format_kairosdb: Don't enable beatification of JSON.
authorFlorian Forster <octo@google.com>
Thu, 9 Jul 2020 10:29:15 +0000 (12:29 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:54 +0000 (13:40 +0200)
commit16895d6cdfa9ee1573dcf344c0d9327a36d1b89a
treeababe673fa21b3563a8ffa23ab53beb25f3b50dc
parent65f935572bef512bca1ea904bd9dc5d6d594496f
format_json, format_kairosdb: Don't enable beatification of JSON.

The code depends on the last character in the buffer being ']'. If
"beautification" is enabled, it will add a newline at the end, which
breaks the "append" mechanic.
src/utils/format_json/format_json.c
src/utils/format_kairosdb/format_kairosdb.c