From 1654508dad27a55f9e593450f8ced676f732f4f0 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Tue, 15 Jun 2021 22:17:06 +0200 Subject: [PATCH] Show clean session in client string --- client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 93e66c0..e815d86 100644 --- a/client.cpp +++ b/client.cpp @@ -268,8 +268,9 @@ bool Client::writeBufIntoFd() std::string Client::repr() { - std::string s = formatString("[ClientID='%s', username='%s', fd=%d, keepalive=%ds, transport='%s', address='%s']", - clientid.c_str(), username.c_str(), fd, keepalive, this->transportStr.c_str(), this->address.c_str()); + std::string s = formatString("[ClientID='%s', username='%s', fd=%d, keepalive=%ds, transport='%s', address='%s', cleanses=%d]", + clientid.c_str(), username.c_str(), fd, keepalive, this->transportStr.c_str(), this->address.c_str(), + cleanSession); return s; } -- libgit2 0.21.4