diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-07-13 02:19:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-13 02:19:43 +0300 |
commit | 1a6514be48639f3eaedbdaa1bee8ced5d33423e8 (patch) | |
tree | dca6df9018c4412c4836985eb90c2b353bfd39cf | |
parent | 6186f0c835155c52fb693b209f50007579bfa269 (diff) | |
download | ydb-1a6514be48639f3eaedbdaa1bee8ced5d33423e8.tar.gz |
Reduce binary size (AuditLogEntry) (#6624)
-rw-r--r-- | ydb/core/ymq/actor/action.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/ydb/core/ymq/actor/action.h b/ydb/core/ymq/actor/action.h index b77c9f3a7d9..2c81d80fe00 100644 --- a/ydb/core/ymq/actor/action.h +++ b/ydb/core/ymq/actor/action.h @@ -362,12 +362,9 @@ protected: #undef RESPONSE_CASE } } - - template <class TResponse> - void AuditLogEntry(const TResponse& response, const TString& requestId, const TError* error = nullptr) { - if (!error && response.HasError()) { - error = &response.GetError(); - } + +private: + void AuditLogEntryImpl(const TString& requestId, const TError* error = nullptr) { static const TString EmptyValue = "{none}"; AUDIT_LOG( AUDIT_PART("component", TString("ymq")) @@ -385,6 +382,15 @@ protected: ); } +protected: + template <class TResponse> + void AuditLogEntry(const TResponse& response, const TString& requestId, const TError* error = nullptr) { + if (!error && response.HasError()) { + error = &response.GetError(); + } + AuditLogEntryImpl(requestId, error); + } + void PassAway() { if (TProxyActor::NeedCreateProxyActor(Action_)) { if (TString queueName = GetQueueName()) { |