aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-04 12:56:14 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-04 12:56:14 -0800
commit38d3d03e3b598ca560c487a6930b471a096ffac9 (patch)
tree018dfa8b9f9f1082764d674470b0cd751013a85c /src/core
parent604b565ea5a52a78982de8cf5ed263b0d9339bb0 (diff)
downloadnng-38d3d03e3b598ca560c487a6930b471a096ffac9.tar.gz
nng-38d3d03e3b598ca560c487a6930b471a096ffac9.tar.bz2
nng-38d3d03e3b598ca560c487a6930b471a096ffac9.zip
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/log.c2
1 files changed, 1 insertions, 1 deletions
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))) {