diff --git a/cpp/s2pdump/s2pdump_core.cpp b/cpp/s2pdump/s2pdump_core.cpp index 90a52bd4..5a2ff3fc 100644 --- a/cpp/s2pdump/s2pdump_core.cpp +++ b/cpp/s2pdump/s2pdump_core.cpp @@ -228,7 +228,7 @@ bool S2pDump::ParseArguments(span args) // NOSONAR Acceptable complexity return false; } - if (!SetLogLevel(*default_logger(), log_level)) { + if (!SetLogLevel(*initiator_logger, log_level)) { throw parser_exception("Invalid log level '" + log_level + "'"); }