From 4d294fda56596a9a63d6815dae39d0faf2b02373 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Mon, 24 Jan 2022 02:55:18 +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 d24fe46..781fe83 100644 --- a/RemoteControl.cpp +++ b/RemoteControl.cpp @@ -160,7 +160,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);