diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-07-06 17:19:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 17:19:15 +0300 |
commit | 9af8a73e255ee66c89175844eb2f3759672e5cc2 (patch) | |
tree | 7c3ce3effa90ada46a42351a240d2fc2eecfcac6 /libnetdata | |
parent | 4f5228e65463cf680d2ec3fedaf71c813d69309b (diff) |
local-listener using libnetdata (#15319)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/log/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetdata/log/log.c b/libnetdata/log/log.c index b3d8cbc20c..0ce989457b 100644 --- a/libnetdata/log/log.c +++ b/libnetdata/log/log.c @@ -781,7 +781,7 @@ void debug_int( const char *file, const char *function, const unsigned long line void info_int( int is_collector, const char *file __maybe_unused, const char *function __maybe_unused, const unsigned long line __maybe_unused, const char *fmt, ... ) { va_list args; - FILE *fp = (is_collector) ? stderr : stderror; + FILE *fp = (is_collector || !stderror) ? stderr : stderror; log_lock(); @@ -910,7 +910,7 @@ void error_limit_int(ERROR_LIMIT *erl, const char *prefix, const char *file __ma void error_int(int is_collector, const char *prefix, const char *file __maybe_unused, const char *function __maybe_unused, const unsigned long line __maybe_unused, const char *fmt, ... ) { // save a copy of errno - just in case this function generates a new error int __errno = errno; - FILE *fp = (is_collector) ? stderr : stderror; + FILE *fp = (is_collector || !stderror) ? stderr : stderror; va_list args; |