mirror of https://git.kore.io/kore.git
call explicit fflush() on stdout
This commit is contained in:
parent
06991d22d5
commit
00ef837d62
|
@ -106,6 +106,7 @@ log_from_worker(struct kore_msg *msg, const void *data)
|
||||||
if (kore_foreground) {
|
if (kore_foreground) {
|
||||||
printf("%s: %.*s\n",
|
printf("%s: %.*s\n",
|
||||||
name, (int)wlog->loglen, wlog->logmsg);
|
name, (int)wlog->loglen, wlog->logmsg);
|
||||||
|
fflush(stdout);
|
||||||
} else {
|
} else {
|
||||||
syslog(wlog->prio, "%s: %.*s",
|
syslog(wlog->prio, "%s: %.*s",
|
||||||
name, (int)wlog->loglen, wlog->logmsg);
|
name, (int)wlog->loglen, wlog->logmsg);
|
||||||
|
|
Loading…
Reference in New Issue