From 3f51d9998bb1575b333ed4e37b59dee76bf38ff8 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Fri, 12 Apr 2024 16:50:53 -0400 Subject: [PATCH] [7687] Change log level severity of fallback log message: warn -> trace Before this commit, the lack of a log category in the "/log_level" stanza of server_config.json would cause a warning to be written to the log file every time the missing log category was used. This would result in the the log file being filled with warning messages about falling back to the default log level of "info" for that log category. This commit makes it so that the fallback message is logged as a "trace" level message, which keeps the log file quiet, but the message available only if the server/logger is configured to output more messages. --- lib/core/src/irods_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/irods_logger.cpp b/lib/core/src/irods_logger.cpp index f24ccc78bf..b98acd598f 100644 --- a/lib/core/src/irods_logger.cpp +++ b/lib/core/src/irods_logger.cpp @@ -199,7 +199,7 @@ namespace irods::experimental::log } catch (...) { try { - server::warn("Cannot get log level for log category [{}]. Defaulting to [info].", _category); + server::trace("Cannot get log level for log category [{}]. Defaulting to [info].", _category); } catch (...) { }