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
commit 2b34978be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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);