Moved some less interesting debug messages from INFO to MEDIUM level for better readability

This commit is contained in:
Thulinma 2020-08-17 10:08:34 +02:00
parent 5e57dd57af
commit 5019c2418c
2 changed files with 10 additions and 3 deletions

View file

@ -1269,7 +1269,11 @@ namespace Mist{
} }
if (!config->is_active){Util::logExitReason("set inactive");} if (!config->is_active){Util::logExitReason("set inactive");}
if (!myConn){Util::logExitReason("connection closed");} 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(); onFinish();
/*LTS-START*/ /*LTS-START*/

View file

@ -203,8 +203,11 @@ namespace Mist{
while (H.Read(myConn)){ while (H.Read(myConn)){
std::string handler = getHandler(); std::string handler = getHandler();
INFO_MSG("Received request: %s => %s (%s)", H.getUrl().c_str(), handler.c_str(), if (handler != capa["name"].asStringRef() || H.GetVar("stream") != streamName){
H.GetVar("stream").c_str()); 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()){ if (!handler.size()){
H.Clean(); H.Clean();
H.SetHeader("Server", APPIDENT); H.SetHeader("Server", APPIDENT);