aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkrorlqr <qkrorlqr@yandex-team.com>2023-05-24 22:48:54 +0300
committerqkrorlqr <qkrorlqr@yandex-team.com>2023-05-24 22:48:54 +0300
commit756e733d881b8d4aaba2e2ab6a51e715fb9d435a (patch)
tree39cba88bf9867cef7c1baff765db18b491d9619c
parent77f971217c89690c2575e4a1d503c7d4c5156b06 (diff)
downloadydb-756e733d881b8d4aaba2e2ab6a51e715fb9d435a.tar.gz
more detailed logging;
-rw-r--r--library/cpp/actors/http/http_proxy_acceptor.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/library/cpp/actors/http/http_proxy_acceptor.cpp b/library/cpp/actors/http/http_proxy_acceptor.cpp
index 0e8842aa07..4ff09ec7aa 100644
--- a/library/cpp/actors/http/http_proxy_acceptor.cpp
+++ b/library/cpp/actors/http/http_proxy_acceptor.cpp
@@ -69,6 +69,13 @@ protected:
}
if (err == 0) {
err = Socket->Socket.Bind(bindAddress.get());
+ if (err != 0) {
+ LOG_WARN_S(
+ ctx,
+ HttpLog,
+ "Failed to bind " << bindAddress->ToString()
+ << ", code: " << err);
+ }
}
TStringBuf schema = Endpoint->Secure ? "https://" : "http://";
if (err == 0) {
@@ -80,9 +87,15 @@ protected:
TBase::Become(&TAcceptorActor::StateListening);
ctx.Send(event->Sender, new TEvHttpProxy::TEvConfirmListen(bindAddress, Endpoint), 0, event->Cookie);
return;
+ } else {
+ LOG_WARN_S(
+ ctx,
+ HttpLog,
+ "Failed to listen on " << schema << bindAddress->ToString()
+ << ", code: " << err);
}
}
- LOG_WARN_S(ctx, HttpLog, "Failed to listen on " << schema << bindAddress->ToString() << " - retrying...");
+ LOG_WARN_S(ctx, HttpLog, "Failed to init - retrying...");
ctx.ExecutorThread.Schedule(TDuration::Seconds(1), event.Release());
}