Browse Source

Don't use JSON_EOL for logged text

master
Con Kolivas 10 years ago
parent
commit
de0f3438e9
  1. 4
      src/stratifier.c

4
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);

Loading…
Cancel
Save