mirror of
https://passt.top/passt
synced 2025-06-09 17:15:34 +02:00
log, passt: Keep printing to stderr when passt is running in foreground
There are two cases where we want to stop printing to stderr: if it's
closed, and if pasta spawned a shell (and --debug wasn't given).
But if passt is running in foreground, we currently stop to report any
message, even error messages, once we're ready, as reported by
Laurent, because we set the log_runtime flag, which we use to indicate
we're ready, regardless of whether we're running in foreground or not.
Turn that flag (back) to log_stderr, and set it only when we really
want to stop printing to stderr.
Reported-by: Laurent Vivier <lvivier@redhat.com>
Fixes: afd9cdc9bb
("log, passt: Always print to stderr before initialisation is complete")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
3a082c4ecb
commit
ee36266a55
3 changed files with 11 additions and 9 deletions
2
log.h
2
log.h
|
@ -43,7 +43,7 @@ void logmsg_perror(int pri, const char *format, ...)
|
|||
|
||||
extern int log_trace;
|
||||
extern bool log_conf_parsed;
|
||||
extern bool log_runtime;
|
||||
extern bool log_stderr;
|
||||
extern struct timespec log_start;
|
||||
|
||||
void trace_init(int enable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue