From 0e723499136ca212872e1a724be844128758ffb4 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Mon, 24 Jan 2022 14:20:58 +0000 Subject: [PATCH] Add a way to disable the RemoteCommand logging (annoying when RemoteCommand is heavily used). --- RemoteControl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RemoteControl.cpp b/RemoteControl.cpp index 8f749cb..f84f11f 100644 --- a/RemoteControl.cpp +++ b/RemoteControl.cpp @@ -129,7 +129,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(), (unsigned int)replyStr.length(), address, addrlen);