From 006d8ab99d6c8604f03e667a8dc8001d9f6dd799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 3 Oct 2017 09:32:46 +0200 Subject: [PATCH] Update debug output for server shutdown --- libguh-core/tcpserver.cpp | 2 +- libguh-core/webserver.cpp | 2 +- libguh-core/websocketserver.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libguh-core/tcpserver.cpp b/libguh-core/tcpserver.cpp index f050927b..da4602c4 100644 --- a/libguh-core/tcpserver.cpp +++ b/libguh-core/tcpserver.cpp @@ -57,7 +57,7 @@ TcpServer::TcpServer(const ServerConfiguration &configuration, const QSslConfigu /*! Destructor of this \l{TcpServer}. */ TcpServer::~TcpServer() { - qCDebug(dcApplication) << "Shutting down \"TCP Server\"" << QString("%1://%2:%3").arg((configuration().authenticationEnabled ? "guhs" : "guh")).arg(configuration().address.toString()).arg(configuration().port); + qCDebug(dcApplication) << "Shutting down \"TCP Server\"" << QString("%1://%2:%3").arg((configuration().sslEnabled ? "guhs" : "guh")).arg(configuration().address.toString()).arg(configuration().port); stopServer(); } diff --git a/libguh-core/webserver.cpp b/libguh-core/webserver.cpp index 5e1890f9..d5ac5feb 100644 --- a/libguh-core/webserver.cpp +++ b/libguh-core/webserver.cpp @@ -115,7 +115,7 @@ WebServer::WebServer(const WebServerConfiguration &configuration, const QSslConf /*! Destructor of this \l{WebServer}. */ WebServer::~WebServer() { - qCDebug(dcApplication) << "Shutting down \"Webserver\"" << QString("%1://%2:%3").arg((m_configuration.authenticationEnabled ? "https" : "http")).arg(m_configuration.address.toString()).arg(m_configuration.port); + qCDebug(dcApplication) << "Shutting down \"Webserver\"" << QString("%1://%2:%3").arg((m_configuration.sslEnabled ? "https" : "http")).arg(m_configuration.address.toString()).arg(m_configuration.port); this->close(); } diff --git a/libguh-core/websocketserver.cpp b/libguh-core/websocketserver.cpp index 54b33d74..407362db 100644 --- a/libguh-core/websocketserver.cpp +++ b/libguh-core/websocketserver.cpp @@ -73,7 +73,7 @@ WebSocketServer::WebSocketServer(const ServerConfiguration &configuration, const /*! Destructor of this \l{WebSocketServer}. */ WebSocketServer::~WebSocketServer() { - qCDebug(dcApplication) << "Shutting down \"Websocket server\"" << QString("%1://%2:%3").arg((configuration().authenticationEnabled ? "wss" : "ws")).arg(configuration().address.toString()).arg(configuration().port); + qCDebug(dcApplication) << "Shutting down \"Websocket server\"" << QString("%1://%2:%3").arg((configuration().sslEnabled ? "wss" : "ws")).arg(configuration().address.toString()).arg(configuration().port); stopServer(); }