From 5f574c5d4689e993bde7ee5ad3074ecac5ec43b7 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Apr 2024 16:21:58 +0300 Subject: [PATCH] Removed logging used in debug (#600) Signed-off-by: AssemblyJohn --- lib/ocpp/common/websocket/websocket_libwebsockets.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ocpp/common/websocket/websocket_libwebsockets.cpp b/lib/ocpp/common/websocket/websocket_libwebsockets.cpp index 6f2d1e004..66cc89575 100644 --- a/lib/ocpp/common/websocket/websocket_libwebsockets.cpp +++ b/lib/ocpp/common/websocket/websocket_libwebsockets.cpp @@ -420,6 +420,7 @@ void WebsocketTlsTPM::client_loop() { // lws_set_log_level(LLL_ERR | LLL_WARN | LLL_NOTICE | LLL_INFO | LLL_DEBUG | LLL_PARSER | LLL_HEADER | LLL_EXT | // LLL_CLIENT | LLL_LATENCY | LLL_THREAD | LLL_USER, nullptr); + lws_set_log_level(LLL_ERR, nullptr); lws_context_creation_info info; memset(&info, 0, sizeof(lws_context_creation_info)); @@ -806,7 +807,7 @@ void WebsocketTlsTPM::on_message(std::string&& message) { return; } - EVLOG_info << "Received message over TLS websocket polling for process: " << message; + EVLOG_debug << "Received message over TLS websocket polling for process: " << message; { std::lock_guard lock(this->recv_mutex); @@ -997,7 +998,7 @@ void WebsocketTlsTPM::poll_message(const std::shared_ptr& msg) } } - EVLOG_info << "Queueing message over TLS websocket: " << msg->payload; + EVLOG_debug << "Queueing message over TLS websocket: " << msg->payload; { std::lock_guard lock(this->queue_mutex); @@ -1010,7 +1011,7 @@ void WebsocketTlsTPM::poll_message(const std::shared_ptr& msg) { std::unique_lock lock(this->msg_send_cv_mutex); if (msg_send_cv.wait_for(lock, std::chrono::seconds(20), [&] { return (true == msg->message_sent); })) { - EVLOG_info << "Successfully sent last message over TLS websocket!"; + EVLOG_debug << "Successfully sent last message over TLS websocket!"; } else { EVLOG_warning << "Could not send last message over TLS websocket!"; }