Add a way to disable the RemoteCommand logging (annoying when RemoteCommand is heavily used).

This commit is contained in:
Daniel Caujolle-Bert
2022-01-24 14:20:58 +00:00
parent e2f3542d9c
commit 0e72349913

View File

@@ -129,7 +129,9 @@ REMOTE_COMMAND CRemoteControl::getCommand()
m_args.clear(); m_args.clear();
LogWarning(buffer); LogWarning(buffer);
} else { } else {
#if !defined(REMOTE_COMMAND_NO_LOG)
LogMessage(buffer); LogMessage(buffer);
#endif
} }
m_socket.write((unsigned char*)replyStr.c_str(), (unsigned int)replyStr.length(), address, addrlen); m_socket.write((unsigned char*)replyStr.c_str(), (unsigned int)replyStr.length(), address, addrlen);