Merge pull request #737 from f1rmb/disable_remotecommand_logging

Add a way to disable the RemoteCommand logging (annoying when RemoteCommand is heavily used).
This commit is contained in:
Jonathan Naylor
2022-01-24 07:12:54 +00:00
committed by GitHub

View File

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