From ffe468ce62209d422a65bd1c339818d5ea99d8ef Mon Sep 17 00:00:00 2001 From: Stefano Bonicatti Date: Sat, 19 Oct 2024 14:02:39 +0200 Subject: [PATCH] debug --- osquery/remote/tests/test_utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osquery/remote/tests/test_utils.cpp b/osquery/remote/tests/test_utils.cpp index 4c63ae5102a..e60e9a58ede 100644 --- a/osquery/remote/tests/test_utils.cpp +++ b/osquery/remote/tests/test_utils.cpp @@ -190,6 +190,11 @@ bool TLSServerRunner::start(const std::string& server_cert, // in establishing a correct TLS connection, // but we assume that if it's not a connection timeout (TCP), // then the server is ready enough. + + if (!status.ok()) { + LOG(WARNING) << "Failed to ping: " << status.getMessage(); + } + if (!status.ok() && status.getMessage().find("timeout") != std::string::npos) { LOG(WARNING) << "Python HTTP Server not ready yet";