Skip to content

Commit

Permalink
[7687] Change log level severity of fallback log message: warn -> trace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
korydraughn committed Apr 12, 2024
1 parent 669a726 commit 3f51d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/irods_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (...) {
}
Expand Down

0 comments on commit 3f51d99

Please sign in to comment.