diff --git a/universal/include/userver/logging/log.hpp b/universal/include/userver/logging/log.hpp index 81772f4b52b4..0b1ff7f4fa16 100644 --- a/universal/include/userver/logging/log.hpp +++ b/universal/include/userver/logging/log.hpp @@ -222,7 +222,7 @@ struct EntryStorage final { logger, \ level, \ [](const auto& location) -> const USERVER_NAMESPACE::logging::Module& { \ - static USERVER_NAMESPACE::logging::Module module(location); \ + static const USERVER_NAMESPACE::logging::Module module(location); \ return module; \ }(USERVER_NAMESPACE::utils::impl::SourceLocation::Current()), \ USERVER_NAMESPACE::logging::LogClass::kLog \