From 7a6a6e093b93a7f343a8f9b4c026b081a31bf444 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Tue, 3 Sep 2019 22:46:49 +0300 Subject: [PATCH] Update Loggers.cpp --- libs/libloggers/loggers/Loggers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libloggers/loggers/Loggers.cpp b/libs/libloggers/loggers/Loggers.cpp index 0269fe0787f..6dfc7381739 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); } }