diff options
| author | aleksei-le <[email protected]> | 2024-08-18 11:34:36 +0300 | 
|---|---|---|
| committer | aleksei-le <[email protected]> | 2024-08-18 11:45:30 +0300 | 
| commit | 804344f95d048c032b2c7a62b948aaef625e49c9 (patch) | |
| tree | cee43697d384338551c4aefa6af5c6a392c32fec /library/cpp | |
| parent | aea5cf8df7147f5c28e7738851758de92737d76f (diff) | |
logbroker out: use CloseHandler
Всегда ожидает Close event от СДК, но проверяет таймаут ожидания. Проверка активности соединения, по таймауту сделает реконект. Немного снижено потребление cpu.
4c41128e833c27cea3d1eb0a90c086d1a328f282
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/unified_agent_client/logger.h | 7 | 
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 d83cba92ded..8130c2894c3 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:  | 
