diff options
author | alexalanov <alexalanov@yandex-team.ru> | 2022-02-10 16:50:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:45 +0300 |
commit | 9a901118f2934da16fdb24f8d314e1c370ca611f (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | 17da6ebd947b47279482761a7fc6a1ebf0c60855 (diff) | |
download | ydb-9a901118f2934da16fdb24f8d314e1c370ca611f.tar.gz |
Restoring authorship annotation for <alexalanov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/core/log.cpp | 8 | ||||
-rw-r--r-- | library/cpp/actors/core/log_settings.cpp | 18 | ||||
-rw-r--r-- | library/cpp/actors/core/log_settings.h | 4 | ||||
-rw-r--r-- | library/cpp/actors/core/mon.h | 28 |
4 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/actors/core/log.cpp b/library/cpp/actors/core/log.cpp index 921f373646..5f63b5af58 100644 --- a/library/cpp/actors/core/log.cpp +++ b/library/cpp/actors/core/log.cpp @@ -650,13 +650,13 @@ namespace NActors { } const char* TLoggerActor::FormatLocalTimestamp(TInstant time, char* buf) { - struct tm localTime; - time.LocalTime(&localTime); + struct tm localTime; + time.LocalTime(&localTime); int r = strftime(buf, TimeBufSize, "%Y-%m-%d-%H-%M-%S", &localTime); Y_VERIFY(r != 0); return buf; - } - + } + TAutoPtr<TLogBackend> CreateSysLogBackend(const TString& ident, bool logPError, bool logCons) { int flags = 0; diff --git a/library/cpp/actors/core/log_settings.cpp b/library/cpp/actors/core/log_settings.cpp index 39ab30784d..f52f2fc5d2 100644 --- a/library/cpp/actors/core/log_settings.cpp +++ b/library/cpp/actors/core/log_settings.cpp @@ -19,7 +19,7 @@ namespace NActors { , DefPriority(defPriority) , DefSamplingPriority(defSamplingPriority) , DefSamplingRate(defSamplingRate) - , UseLocalTimestamps(false) + , UseLocalTimestamps(false) , Format(PLAIN_FULL_FORMAT) , ShortHostName("") , ClusterName("") @@ -41,7 +41,7 @@ namespace NActors { , DefPriority(defPriority) , DefSamplingPriority(defSamplingPriority) , DefSamplingRate(defSamplingRate) - , UseLocalTimestamps(false) + , UseLocalTimestamps(false) , Format(PLAIN_FULL_FORMAT) , ShortHostName("") , ClusterName("") @@ -51,12 +51,12 @@ namespace NActors { void TSettings::Append(EComponent minVal, EComponent maxVal, EComponentToStringFunc func) { Y_VERIFY(minVal >= 0, "NLog::TSettings: minVal must be non-negative"); Y_VERIFY(maxVal > minVal, "NLog::TSettings: maxVal must be greater than minVal"); - + // update bounds if (!MaxVal || minVal < MinVal) { MinVal = minVal; } - + if (!MaxVal || maxVal > MaxVal) { MaxVal = maxVal; @@ -77,7 +77,7 @@ namespace NActors { } ComponentNames.resize(Mask + 1); - } + } // assign new names but validate if newly added members were not used before for (int i = minVal; i <= maxVal; i++) { @@ -209,10 +209,10 @@ namespace NActors { ThrottleDelay = value; } - void TSettings::SetUseLocalTimestamps(bool value) { - UseLocalTimestamps = value; - } - + void TSettings::SetUseLocalTimestamps(bool value) { + UseLocalTimestamps = value; + } + EComponent TSettings::FindComponent(const TStringBuf& componentName) const { if (componentName.empty()) return InvalidComponent; diff --git a/library/cpp/actors/core/log_settings.h b/library/cpp/actors/core/log_settings.h index d9a3f90c16..7fe4504edd 100644 --- a/library/cpp/actors/core/log_settings.h +++ b/library/cpp/actors/core/log_settings.h @@ -82,7 +82,7 @@ namespace NActors { EPriority DefPriority; EPriority DefSamplingPriority; ui32 DefSamplingRate; - bool UseLocalTimestamps; + bool UseLocalTimestamps; enum ELogFormat { PLAIN_FULL_FORMAT, @@ -163,7 +163,7 @@ namespace NActors { bool IsValidComponent(EComponent component); void SetAllowDrop(bool val); void SetThrottleDelay(TDuration value); - void SetUseLocalTimestamps(bool value); + void SetUseLocalTimestamps(bool value); private: int SetLevelImpl( diff --git a/library/cpp/actors/core/mon.h b/library/cpp/actors/core/mon.h index d62ef58f86..c450f2338e 100644 --- a/library/cpp/actors/core/mon.h +++ b/library/cpp/actors/core/mon.h @@ -13,7 +13,7 @@ namespace NActors { RemoteHttpInfo, RemoteHttpInfoRes, RemoteJsonInfoRes, - RemoteBinaryInfoRes, + RemoteBinaryInfoRes, End }; @@ -200,22 +200,22 @@ namespace NActors { struct TEvRemoteBinaryInfoRes: public NActors::TEventBase<TEvRemoteBinaryInfoRes, RemoteBinaryInfoRes> { TEvRemoteBinaryInfoRes() { } - + TEvRemoteBinaryInfoRes(const TString& blob) - : Blob(blob) + : Blob(blob) { } - + TString Blob; - + TString ToStringHeader() const override { - return "TEvRemoteBinaryInfoRes"; - } - + return "TEvRemoteBinaryInfoRes"; + } + bool SerializeToArcadiaStream(TChunkSerializer *serializer) const override { return serializer->WriteString(&Blob); - } - + } + ui32 CalculateSerializedSize() const override { return Blob.size(); } @@ -224,11 +224,11 @@ namespace NActors { return true; } - static IEventBase* Load(TEventSerializedData* bufs) { + static IEventBase* Load(TEventSerializedData* bufs) { return new TEvRemoteBinaryInfoRes(bufs->GetString()); - } - }; - + } + }; + } } |