diff options
| author | YDBot <[email protected]> | 2026-07-04 01:07:32 +0000 |
|---|---|---|
| committer | YDBot <[email protected]> | 2026-07-04 01:07:32 +0000 |
| commit | f7dbea9c1bcabb15221e06721fc9b705ce4111fc (patch) | |
| tree | ed5b4b6e96e99785597b2768f9c3e7291caca2f6 /library/cpp/yt/logging/logger.cpp | |
| parent | 4902778678844cf89f27fde24c1403bd0c1aaadf (diff) | |
| parent | 29831c0924cc2568ee528fe8af122b7dc03ece52 (diff) | |
Sync branches 260704-0105
Diffstat (limited to 'library/cpp/yt/logging/logger.cpp')
| -rw-r--r-- | library/cpp/yt/logging/logger.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/yt/logging/logger.cpp b/library/cpp/yt/logging/logger.cpp index 458d01d8133..64d8b06fa7e 100644 --- a/library/cpp/yt/logging/logger.cpp +++ b/library/cpp/yt/logging/logger.cpp @@ -220,23 +220,23 @@ void TLogger::Write(TLogEvent&& event) const LogManager_->Enqueue(std::move(event)); } -void TLogger::AddRawTag(const std::string& tag) +void TLogger::AddRawTag(TStringBuf tag) { auto* state = GetMutableCoWState(); if (!state->Tag.empty()) { state->Tag += ", "; } - state->Tag += tag; + state->Tag.append(tag.data(), tag.size()); } -TLogger TLogger::WithRawTag(const std::string& tag) const & +TLogger TLogger::WithRawTag(TStringBuf tag) const & { auto result = *this; result.AddRawTag(tag); return result; } -TLogger TLogger::WithRawTag(const std::string& tag) && +TLogger TLogger::WithRawTag(TStringBuf tag) && { AddRawTag(tag); return std::move(*this); |
