diff --git a/libs/libloggers/loggers/Loggers.cpp b/libs/libloggers/loggers/Loggers.cpp index 0269fe0787..6dfc738173 100644 --- a/libs/libloggers/loggers/Loggers.cpp +++ b/libs/libloggers/loggers/Loggers.cpp @@ -155,7 +155,8 @@ void Loggers::buildLoggers(Poco::Util::AbstractConfiguration & config, Poco::Log void Loggers::setLoggerSensitiveDataMasker(Poco::Logger & logger, DB::SensitiveDataMasker * sensitive_data_masker) { - if (auto split = dynamic_cast(logger.getChannel())) { + if (auto split = dynamic_cast(logger.getChannel())) + { split->setMasker(sensitive_data_masker); } }