aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/logging
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/yt/logging')
-rw-r--r--library/cpp/yt/logging/backends/stream/stream_log_manager.cpp2
-rw-r--r--library/cpp/yt/logging/logger.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/yt/logging/backends/stream/stream_log_manager.cpp b/library/cpp/yt/logging/backends/stream/stream_log_manager.cpp
index 8b46d5679f..c23c5693b0 100644
--- a/library/cpp/yt/logging/backends/stream/stream_log_manager.cpp
+++ b/library/cpp/yt/logging/backends/stream/stream_log_manager.cpp
@@ -66,7 +66,7 @@ private:
IOutputStream* const Output_;
NThreading::TForkAwareSpinLock SpinLock_;
- THashMap<TString, std::unique_ptr<TLoggingCategory>> NameToCategory_;
+ THashMap<std::string, std::unique_ptr<TLoggingCategory>, THash<TStringBuf>, TEqualTo<TStringBuf>> NameToCategory_;
std::atomic<int> Version_ = 1;
TPlainTextEventFormatter EventFormatter_{/*enableSourceLocation*/ false};
diff --git a/library/cpp/yt/logging/logger.h b/library/cpp/yt/logging/logger.h
index 510acf1310..53bb13e705 100644
--- a/library/cpp/yt/logging/logger.h
+++ b/library/cpp/yt/logging/logger.h
@@ -30,7 +30,7 @@ constexpr double DefaultStructuredValidationSamplingRate = 0.01;
struct TLoggingCategory
{
- TString Name;
+ std::string Name;
//! This value is used for early dropping of plaintext events in order
//! to reduce load on logging thread for events which are definitely going
//! to be dropped due to rule setup.
@@ -50,7 +50,7 @@ struct TLoggingAnchor
TLoggingAnchor* NextAnchor = nullptr;
::TSourceLocation SourceLocation = {TStringBuf{}, 0};
- TString AnchorMessage;
+ std::string AnchorMessage;
std::atomic<int> CurrentVersion = 0;