summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2016-12-29 22:13:50 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2016-12-29 22:13:50 +0100
commit51efddc3d07ce7ba39198559dee3a402ec19f0b6 (patch)
treea3c98397461494678f223141086091d4ddf3c8aa
parent90a4f3181be1b57d910b0a7c7259f6371e2196c9 (diff)
downloadmanager-51efddc3d07ce7ba39198559dee3a402ec19f0b6.tar.gz
manager-51efddc3d07ce7ba39198559dee3a402ec19f0b6.zip
Add log for all issued commands
-rw-r--r--src/CRSMLogging.cpp2
-rw-r--r--src/CRSMLogging.hpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/CRSMLogging.cpp b/src/CRSMLogging.cpp
index 8fe0683..c019814 100644
--- a/src/CRSMLogging.cpp
+++ b/src/CRSMLogging.cpp
@@ -123,10 +123,12 @@ void CRSMLogging::commandLog(const QString &message, const ClientInfo &client, b
if(response)
{
log("Response: " + message.trimmed() + "\n", cmdLogsFolder + client.toString());
+ log("Response: " + client.toString(true) + " " + message.trimmed() + "\n", cmdsLogFile);
}
else
{
log("Command: " + message + "\n", cmdLogsFolder + client.toString());
+ log("Command: " + client.toString(true) + " " + message + "\n", cmdsLogFile);
}
if(client.interface == Clonk)
{
diff --git a/src/CRSMLogging.hpp b/src/CRSMLogging.hpp
index 7f30b3e..4cfdc56 100644
--- a/src/CRSMLogging.hpp
+++ b/src/CRSMLogging.hpp
@@ -23,6 +23,7 @@ class CRSMLogging
const char* clonkLogFile = "clonk";
const char* clonkChatLogFile = "clonk.chat";
const char* scensLogFile = "scenarios";
+ const char* cmdsLogFile = "commands";
public:
CRSMLogging();