From de0f3438e9d3e18a78c639af02a529f4e215fddf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 13 Jan 2015 12:57:33 +1100 Subject: [PATCH] Don't use JSON_EOL for logged text --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index a0cabb63..0b974d5f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3618,8 +3618,8 @@ static void *statsupdate(void *arg) LOGERR("Failed to fopen %s", fname); continue; } - s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER | JSON_EOL); - fprintf(fp, "%s", s); + s = json_dumps(val, JSON_NO_UTF8 | JSON_PRESERVE_ORDER); + fprintf(fp, "%s\n", s); if (!idle) LOGNOTICE("User %s:%s", instance->username, s); dealloc(s);