aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormolotkov-and <molotkov-and@ydb.tech>2023-10-09 13:52:22 +0300
committermolotkov-and <molotkov-and@ydb.tech>2023-10-09 14:18:21 +0300
commit2a4b58d4ce3decdefefd4c213e2e65722d1ff1a5 (patch)
treef18fc6d036d90b0f3dc1b9e7ba39b3347ea483d7
parente89dbe374dee3933e0bc172b8cf61d878a9e1ea9 (diff)
downloadydb-2a4b58d4ce3decdefefd4c213e2e65722d1ff1a5.tar.gz
KIKIMR-19627: Exclude logging for responses with status 2xx
-rw-r--r--library/cpp/actors/http/http_proxy_incoming.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/actors/http/http_proxy_incoming.cpp b/library/cpp/actors/http/http_proxy_incoming.cpp
index fa63783c2d..f6d26ec3eb 100644
--- a/library/cpp/actors/http/http_proxy_incoming.cpp
+++ b/library/cpp/actors/http/http_proxy_incoming.cpp
@@ -189,7 +189,7 @@ protected:
THttpIncomingRequestPtr request = response->GetRequest();
response->Finish();
LOG_DEBUG_S(ctx, HttpLog, "(#" << TSocketImpl::GetRawSocket() << "," << Address << ") <- (" << response->Status << " " << response->Message << ")");
- if (response->Status != "200" && response->Status != "404") {
+ if (!response->Status.StartsWith('2') && response->Status != "404") {
static constexpr size_t MAX_LOGGED_SIZE = 1024;
LOG_DEBUG_S(ctx, HttpLog,
"(#"