mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
17 lines
278 B
C++
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();
|
|
}
|
|
}
|