Fix build

This commit is contained in:
Alexey Milovidov 2020-05-31 16:50:40 +03:00
parent b444615404
commit e3dc1d6734

View File

@ -288,7 +288,7 @@ extern "C" void __sanitizer_set_death_callback(void (*)());
static void sanitizerDeathCallback() static void sanitizerDeathCallback()
{ {
Logger * log = &Logger::get("BaseDaemon"); Poco::Logger * log = &Poco::Logger::get("BaseDaemon");
StringRef query_id = CurrentThread::getQueryId(); /// This is signal safe. StringRef query_id = CurrentThread::getQueryId(); /// This is signal safe.
@ -498,10 +498,10 @@ void debugIncreaseOOMScore()
} }
catch (const Poco::Exception & e) catch (const Poco::Exception & e)
{ {
LOG_WARNING(&Logger::root(), "Failed to adjust OOM score: '{}'.", e.displayText()); LOG_WARNING(&Poco::Logger::root(), "Failed to adjust OOM score: '{}'.", e.displayText());
return; return;
} }
LOG_INFO(&Logger::root(), "Set OOM score adjustment to {}", new_score); LOG_INFO(&Poco::Logger::root(), "Set OOM score adjustment to {}", new_score);
} }
#else #else
void debugIncreaseOOMScore() {} void debugIncreaseOOMScore() {}