Human readable socket error message in log

This commit is contained in:
Bill Somerville 2021-01-27 18:11:50 +00:00
parent 3967660297
commit 21b57dbe6f
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -116,7 +116,7 @@ public:
void handle_socket_error (QAbstractSocket::SocketError e)
{
LOG_LOG_LOCATION (logger_, trace, "err: " << e);
LOG_LOG_LOCATION (logger_, warning, "socket error: " << socket_->errorString ());
switch (e)
{
case QAbstractSocket::RemoteHostClosedError: