summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();