#include #include namespace DB { bool currentThreadHasGroup() { return DB::CurrentThread::getGroup() != nullptr; } LogsLevel currentThreadLogsLevel() { return DB::CurrentThread::get().getClientLogsLevel(); } }