diff --git a/RemoteControl.cpp b/RemoteControl.cpp index d24fe46f..781fe830 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);