diff options
author | ilnaz <ilnaz@ydb.tech> | 2023-12-04 14:05:26 +0300 |
---|---|---|
committer | ilnaz <ilnaz@ydb.tech> | 2023-12-04 18:21:28 +0300 |
commit | 455599ec8afaa78e4c13997fb90ad95f5bc13e13 (patch) | |
tree | 00456648f9ecb5ae696c87c34ab88783a6d10113 | |
parent | c670eacd23ae534fcc7115f139a70b0676973886 (diff) | |
download | ydb-455599ec8afaa78e4c13997fb90ad95f5bc13e13.tar.gz |
Fix error formatting KIKIMR-20254
-rw-r--r-- | ydb/core/cms/log_formatter.h | 2 | ||||
-rw-r--r-- | ydb/core/cms/sentinel.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ydb/core/cms/log_formatter.h b/ydb/core/cms/log_formatter.h index 1776ef621f..a8e458c679 100644 --- a/ydb/core/cms/log_formatter.h +++ b/ydb/core/cms/log_formatter.h @@ -94,7 +94,7 @@ TString TLogFormatter<NKikimrCms::TEXT_FORMAT_SHORT>::FormatData(const NKikimrCm << " from " << data.GetCurrentStatus() << " to " << data.GetRequiredStatus(); if (data.HasReason()) { - ss << "(" << data.GetReason() << ")"; + ss << " (" << data.GetReason() << ")"; } return ss.Str(); } diff --git a/ydb/core/cms/sentinel.cpp b/ydb/core/cms/sentinel.cpp index a87700169f..6881eec347 100644 --- a/ydb/core/cms/sentinel.cpp +++ b/ydb/core/cms/sentinel.cpp @@ -72,12 +72,12 @@ EPDiskStatus TPDiskStatusComputer::Compute(EPDiskStatus current, TString& reason if (!stateLimit || StateCounter < stateLimit) { reason = TStringBuilder() - << " PrevState# " << PrevState + << "PrevState# " << PrevState << " State# " << State << " StateCounter# " << StateCounter << " current# " << current; switch (PrevState) { - case NKikimrBlobStorage::TPDiskState::Unknown: + case NKikimrBlobStorage::TPDiskState::Unknown: return current; default: return EPDiskStatus::INACTIVE; @@ -85,7 +85,7 @@ EPDiskStatus TPDiskStatusComputer::Compute(EPDiskStatus current, TString& reason } reason = TStringBuilder() - << " PrevState# " << PrevState + << "PrevState# " << PrevState << " State# " << State << " StateCounter# " << StateCounter << " StateLimit# " << stateLimit; |