ClickHouse/src/Common/CurrentThreadHelpers.cpp
2024-04-02 13:43:14 +02:00

17 lines
278 B
C++

#include <Common/CurrentThread.h>
#include <Common/CurrentThreadHelpers.h>
namespace DB
{
bool currentThreadHasGroup()
{
return DB::CurrentThread::getGroup() != nullptr;
}
LogsLevel currentThreadLogsLevel()
{
return DB::CurrentThread::get().getClientLogsLevel();
}
}