fix warning + add redis server logging

This commit is contained in:
Benjamin Sergeant 2019-09-23 21:14:20 -07:00
parent fbf80f4ab1
commit c32067013a
2 changed files with 8 additions and 2 deletions

View File

@ -195,6 +195,12 @@ namespace ix
tokens.push_back(readResult.second);
}
for (auto&& token : tokens)
{
std::cerr << token << " ";
}
std::cerr << std::endl;
return true;
}

View File

@ -58,8 +58,6 @@ namespace ix
void stopAcceptingConnections();
std::atomic<bool> _stop;
private:
// Member variables
int _port;
@ -70,6 +68,8 @@ namespace ix
// socket for accepting connections
int _serverFd;
std::atomic<bool> _stop;
std::mutex _logMutex;
// background thread to wait for incoming connections