diff options
author | dcherednik <dcherednik@ydb.tech> | 2023-02-14 23:20:38 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2023-02-14 23:20:38 +0300 |
commit | eaef11f63bb056175fdc296f35574af4cffcc2fa (patch) | |
tree | a15b71674a1e748d25be96157b33b125a0cb75a3 | |
parent | 85e26a91af63c7926f981b4fa7d0be6737e387d1 (diff) | |
download | ydb-eaef11f63bb056175fdc296f35574af4cffcc2fa.tar.gz |
Do not log authentification issue with ERROR, NOTICE level.
-rw-r--r-- | ydb/core/grpc_services/grpc_request_check_actor.h | 6 | ||||
-rw-r--r-- | ydb/core/grpc_services/grpc_request_proxy.cpp | 2 | ||||
-rw-r--r-- | ydb/core/grpc_services/grpc_request_proxy_simple.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ydb/core/grpc_services/grpc_request_check_actor.h b/ydb/core/grpc_services/grpc_request_check_actor.h index 0cb310c722..254076682c 100644 --- a/ydb/core/grpc_services/grpc_request_check_actor.h +++ b/ydb/core/grpc_services/grpc_request_check_actor.h @@ -29,7 +29,7 @@ class TGrpcRequestCheckActor using TBase = TActorBootstrappedSecureRequest<TGrpcRequestCheckActor>; public: void OnAccessDenied(const TEvTicketParser::TError& error, const TActorContext& ctx) { - LOG_ERROR(ctx, NKikimrServices::GRPC_SERVER, error.ToString()); + LOG_INFO(ctx, NKikimrServices::GRPC_SERVER, error.ToString()); if (error.Retryable) { GrpcRequestBaseCtx_->UpdateAuthState(NGrpc::TAuthState::AS_UNAVAILABLE); } else { @@ -243,7 +243,7 @@ private: break; case Ydb::StatusIds::TIMEOUT: Counters_->IncDatabaseRateLimitedCounter(); - LOG_ERROR(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "Throughput limit exceeded"); + LOG_INFO(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "Throughput limit exceeded"); ReplyOverloadedAndDie(MakeIssue(NKikimrIssues::TIssuesIds::YDB_RESOURCE_USAGE_LIMITED, "Throughput limit exceeded")); break; default: @@ -425,7 +425,7 @@ private: return {false, std::nullopt}; } - LOG_ERROR(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", error.c_str()); + LOG_INFO(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", error.c_str()); return {true, MakeIssue(NKikimrIssues::TIssuesIds::ACCESS_DENIED, error)}; } diff --git a/ydb/core/grpc_services/grpc_request_proxy.cpp b/ydb/core/grpc_services/grpc_request_proxy.cpp index beac70be05..c52bf5fc46 100644 --- a/ydb/core/grpc_services/grpc_request_proxy.cpp +++ b/ydb/core/grpc_services/grpc_request_proxy.cpp @@ -499,7 +499,7 @@ void LogRequest(const TEvent& event) { }; if constexpr (std::is_same_v<TEvListEndpointsRequest::TPtr, TEvent>) { - LOG_NOTICE(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); + LOG_INFO(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); } else { LOG_DEBUG(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); diff --git a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp index 0fe48eff99..dc21ded655 100644 --- a/ydb/core/grpc_services/grpc_request_proxy_simple.cpp +++ b/ydb/core/grpc_services/grpc_request_proxy_simple.cpp @@ -189,7 +189,7 @@ void LogRequest(const TEvent& event) { }; if constexpr (std::is_same_v<TEvListEndpointsRequest::TPtr, TEvent>) { - LOG_NOTICE(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); + LOG_INFO(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); } else { LOG_DEBUG(*TlsActivationContext, NKikimrServices::GRPC_SERVER, "%s", getDebugString().c_str()); |