Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-07-10 04:19:41 +0300
committerRich Trott <rtrott@gmail.com>2021-07-12 16:29:01 +0300
commita518e4b871d39f0631beefc79cfa9dd81b82fe9f (patch)
tree928dd50847668e50fd2e1bc69cb167877323ba1b /src/inspector_socket_server.cc
parent09d8c0c8d2c17fc07e9e313c0f35a7b696d18bc8 (diff)
debugger: indicate server is ending
Currently, we say "listening" when we are ending the server. Change it to "ending". Fixes: https://github.com/nodejs/node/issues/39272 PR-URL: https://github.com/nodejs/node/pull/39334 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Yash Ladha <yash@yashladha.in>
Diffstat (limited to 'src/inspector_socket_server.cc')
-rw-r--r--src/inspector_socket_server.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspector_socket_server.cc b/src/inspector_socket_server.cc
index 29e0c128026..299664da9a1 100644
--- a/src/inspector_socket_server.cc
+++ b/src/inspector_socket_server.cc
@@ -234,6 +234,7 @@ void PrintDebuggerReadyMessage(
const std::string& host,
const std::vector<InspectorSocketServer::ServerSocketPtr>& server_sockets,
const std::vector<std::string>& ids,
+ const char* verb,
bool publish_uid_stderr,
FILE* out) {
if (!publish_uid_stderr || out == nullptr) {
@@ -241,7 +242,8 @@ void PrintDebuggerReadyMessage(
}
for (const auto& server_socket : server_sockets) {
for (const std::string& id : ids) {
- fprintf(out, "Debugger listening on %s\n",
+ fprintf(out, "Debugger %s on %s\n",
+ verb,
FormatWsAddress(host, server_socket->port(), id, true).c_str());
}
}
@@ -300,6 +302,7 @@ void InspectorSocketServer::SessionTerminated(int session_id) {
PrintDebuggerReadyMessage(host_,
server_sockets_,
delegate_->GetTargetIds(),
+ "ending",
inspect_publish_uid_.console,
out_);
}
@@ -425,6 +428,7 @@ bool InspectorSocketServer::Start() {
PrintDebuggerReadyMessage(host_,
server_sockets_,
delegate_->GetTargetIds(),
+ "listening",
inspect_publish_uid_.console,
out_);
return true;