aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authoraleksei-le <aleksei-le@yandex-team.com>2024-08-18 11:34:36 +0300
committeraleksei-le <aleksei-le@yandex-team.com>2024-08-18 11:45:30 +0300
commit804344f95d048c032b2c7a62b948aaef625e49c9 (patch)
treecee43697d384338551c4aefa6af5c6a392c32fec /library
parentaea5cf8df7147f5c28e7738851758de92737d76f (diff)
downloadydb-804344f95d048c032b2c7a62b948aaef625e49c9.tar.gz
logbroker out: use CloseHandler
Всегда ожидает Close event от СДК, но проверяет таймаут ожидания. Проверка активности соединения, по таймауту сделает реконект. Немного снижено потребление cpu. 4c41128e833c27cea3d1eb0a90c086d1a328f282
Diffstat (limited to 'library')
-rw-r--r--library/cpp/unified_agent_client/logger.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/cpp/unified_agent_client/logger.h b/library/cpp/unified_agent_client/logger.h
index d83cba92de..8130c2894c 100644
--- a/library/cpp/unified_agent_client/logger.h
+++ b/library/cpp/unified_agent_client/logger.h
@@ -133,6 +133,13 @@ namespace NUnifiedAgent {
return Logger;
}
+ ELogPriority FiltrationLevel() const {
+ if (Logger) {
+ return Logger->CurrentLogContext_.load()->Priority;
+ }
+ return LOG_DEF_PRIORITY;
+ }
+
friend class TLogger;
private: