commit 156ca9a46507ef39b4ddbd3a256145110abe7b8e
parent 041b128a86bdddab085ed2b03cbab282bbfd82d2
Author: vaplv <vaplv@free.fr>
Date: Thu, 20 Mar 2025 14:31:55 +0100
Fix default logger
The message was always printed on the standard error when the
information should have been printed on the standard output.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/logger.c b/src/logger.c
@@ -42,7 +42,7 @@ logger_vprint
ASSERT(logger && log && (unsigned)type < LOG_TYPES_COUNT__);
if(logger == LOGGER_DEFAULT) {
- FILE* stream = LOG_OUTPUT ? stdout : stderr;
+ FILE* stream = type == LOG_OUTPUT ? stdout : stderr;
vfprintf(stream, log, vargs_list);
fflush(stream);
return RES_OK;