Commit 1654508dad27a55f9e593450f8ced676f732f4f0

Authored by Wiebe Cazemier
1 parent e737356d

Show clean session in client string

Showing 1 changed file with 3 additions and 2 deletions
client.cpp
@@ -268,8 +268,9 @@ bool Client::writeBufIntoFd() @@ -268,8 +268,9 @@ bool Client::writeBufIntoFd()
268 268
269 std::string Client::repr() 269 std::string Client::repr()
270 { 270 {
271 - std::string s = formatString("[ClientID='%s', username='%s', fd=%d, keepalive=%ds, transport='%s', address='%s']",  
272 - clientid.c_str(), username.c_str(), fd, keepalive, this->transportStr.c_str(), this->address.c_str()); 271 + std::string s = formatString("[ClientID='%s', username='%s', fd=%d, keepalive=%ds, transport='%s', address='%s', cleanses=%d]",
  272 + clientid.c_str(), username.c_str(), fd, keepalive, this->transportStr.c_str(), this->address.c_str(),
  273 + cleanSession);
273 return s; 274 return s;
274 } 275 }
275 276