diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-22 16:27:37 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-22 16:27:40 +0300 |
commit | b33a0303e06e463402863a27cebfd3a19175e8f7 (patch) | |
tree | 8a92b654197b1609ffca6f89a4ed53dd5f5df455 /src/server | |
parent | 12f605c388bd3a7ff4f5d930d5ea9d0f07f7adcf (diff) |
server: add some logs
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/connection.cc | 4 |
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}; |