mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 12:28:13 -04:00
fix: output threshold comparison in test logger
This commit is contained in:
parent
956294b6b9
commit
80b11347e1
@ -55,7 +55,7 @@ class test_logger : public ::dwarfs::logger {
|
||||
, output_threshold_{output_threshold(default_threshold())}
|
||||
, output_{::dwarfs::getenv_is_enabled("DWARFS_TEST_LOGGER_OUTPUT")} {
|
||||
if (threshold_ >= level_type::DEBUG ||
|
||||
(output_ && output_threshold_ > level_type::DEBUG)) {
|
||||
(output_ && output_threshold_ >= level_type::DEBUG)) {
|
||||
set_policy<debug_logger_policy>();
|
||||
} else {
|
||||
set_policy<prod_logger_policy>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user