summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:27:37 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-22 16:27:40 +0300
commitb33a0303e06e463402863a27cebfd3a19175e8f7 (patch)
tree8a92b654197b1609ffca6f89a4ed53dd5f5df455 /src/server
parent12f605c388bd3a7ff4f5d930d5ea9d0f07f7adcf (diff)
server: add some logs
Diffstat (limited to 'src/server')
-rw-r--r--src/server/connection.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/connection.cc b/src/server/connection.cc
index 1d87517..499b5a0 100644
--- a/src/server/connection.cc
+++ b/src/server/connection.cc
@@ -207,8 +207,10 @@ Response Connection::processRequest(char* buf) {
CHECK_ARGUMENTS_MIN_LENGTH(1)
std::string& command = arguments[0];
- auto commandArguments = std::vector<std::string>();
+ if (server_->verbose())
+ mylog << "received " << command << " command";
+ auto commandArguments = std::vector<std::string>();
auto argumentsSlice = std::vector<std::string>(arguments.begin()+1, arguments.end());
p18::CommandInput input{&argumentsSlice};