From 5019c2418cd3842e88789ace1ed8e95c26065373 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 17 Aug 2020 10:08:34 +0200 Subject: [PATCH] Moved some less interesting debug messages from INFO to MEDIUM level for better readability --- src/output/output.cpp | 6 +++++- src/output/output_http.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index fcabca81..356dc46b 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -1269,7 +1269,11 @@ namespace Mist{ } if (!config->is_active){Util::logExitReason("set inactive");} if (!myConn){Util::logExitReason("connection closed");} - INFO_MSG("Client handler shutting down, exit reason: %s", Util::exitReason); + if (strncmp(Util::exitReason, "connection closed", 17) == 0){ + MEDIUM_MSG("Client handler shutting down, exit reason: %s", Util::exitReason); + }else{ + INFO_MSG("Client handler shutting down, exit reason: %s", Util::exitReason); + } onFinish(); /*LTS-START*/ diff --git a/src/output/output_http.cpp b/src/output/output_http.cpp index 1adc6af2..1b848073 100644 --- a/src/output/output_http.cpp +++ b/src/output/output_http.cpp @@ -203,8 +203,11 @@ namespace Mist{ while (H.Read(myConn)){ std::string handler = getHandler(); - INFO_MSG("Received request: %s => %s (%s)", H.getUrl().c_str(), handler.c_str(), - H.GetVar("stream").c_str()); + if (handler != capa["name"].asStringRef() || H.GetVar("stream") != streamName){ + INFO_MSG("Received request: %s => %s (%s)", H.getUrl().c_str(), handler.c_str(), H.GetVar("stream").c_str()); + }else{ + MEDIUM_MSG("Received request: %s => %s (%s)", H.getUrl().c_str(), handler.c_str(), H.GetVar("stream").c_str()); + } if (!handler.size()){ H.Clean(); H.SetHeader("Server", APPIDENT);