mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
logs: don't print junk if no timestamp
This commit is contained in:
parent
1c6735e1a0
commit
8dff5b7342
1 changed files with 1 additions and 0 deletions
|
@ -126,6 +126,7 @@ _lwsl_emit_stderr(int level, const char *line, int ts)
|
|||
if (!tty)
|
||||
tty = isatty(2) | 2;
|
||||
|
||||
buf[0] = '\0';
|
||||
#if defined(LWS_LOGS_TIMESTAMP)
|
||||
if (ts)
|
||||
lwsl_timestamp(level, buf, sizeof(buf));
|
||||
|
|
Loading…
Add table
Reference in a new issue