From 38d3d03e3b598ca560c487a6930b471a096ffac9 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 4 Nov 2024 12:56:14 -0800 Subject: logging: better debug & test logs Don't emit the log for date change unless we are in debug mode. Emit a newline when starting a new NUTS test. Change the default log level - it was too noisy. --- src/core/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/log.c b/src/core/log.c index 9f6a10d6..0084b06e 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -154,7 +154,7 @@ stderr_logger(nng_log_level level, nng_log_facility facility, sgr0 = ""; } - if (timechk && + if (timechk && (log_level >= NNG_LOG_DEBUG) && ((last_log.tm_mday != tm->tm_mday) || (last_log.tm_mon != tm->tm_mon) || (last_log.tm_year != tm->tm_year))) { -- cgit v1.2.3-70-g09d2