align debug prints on shutdown

This commit is contained in:
Michael Zanetti 2017-12-22 11:37:15 +01:00
parent 9716d1db7b
commit 9372c6d524
10 changed files with 19 additions and 9 deletions

View File

@ -40,7 +40,6 @@ CloudManager::CloudManager(NetworkManager *networkManager, QObject *parent) : QO
CloudManager::~CloudManager()
{
qCDebug(dcApplication) << "Shutting down \"CloudManager\"";
}
void CloudManager::setServerUrl(const QString &serverUrl)

View File

@ -123,7 +123,23 @@ GuhCore::~GuhCore()
m_logger->logSystemEvent(m_timeManager->currentDateTime(), false);
// Make sure DeviceManager is teared down at first so plugins don't access any ressources any more.
qCDebug(dcApplication) << "Shutting down \"Device Manager\"";
delete m_deviceManager;
qCDebug(dcApplication) << "Shutting down \"Log Engine\"";
delete m_logger;
qCDebug(dcApplication()) << "Shutting down \"Hardware Manager\"";
delete m_hardwareManager;
qCDebug(dcApplication) << "Shutting down \"Rule Engine\"";
delete m_ruleEngine;
qCDebug(dcApplication) << "Shutting down \"Server Manager\"";
delete m_serverManager;
qCDebug(dcApplication) << "Shutting down \"CloudManager\"";
delete m_cloudManager;
}
/*! Destroyes the \l{GuhCore} instance. */

View File

@ -73,7 +73,6 @@ UpnpDiscoveryImplementation::UpnpDiscoveryImplementation(QNetworkAccessManager *
/*! Destruct this \l{UpnpDiscoveryImplementation} object. */
UpnpDiscoveryImplementation::~UpnpDiscoveryImplementation()
{
qCDebug(dcApplication) << "Shutting down \"UPnP Server\"";
sendByeByeMessage();
if (m_socket) {
m_socket->waitForBytesWritten(1000);

View File

@ -86,7 +86,6 @@ HardwareManagerImplementation::HardwareManagerImplementation(QObject *parent) :
HardwareManagerImplementation::~HardwareManagerImplementation()
{
qCDebug(dcApplication()) << "Shutting down Hardware Manager";
}
Radio433 *HardwareManagerImplementation::radio433()

View File

@ -174,7 +174,6 @@ LogEngine::LogEngine(const QString &logPath, QObject *parent):
/*! Destructs the \l{LogEngine}. */
LogEngine::~LogEngine()
{
qCDebug(dcApplication) << "Shutting down \"Log Engine\"";
m_db.close();
}

View File

@ -322,7 +322,6 @@ RuleEngine::RuleEngine(QObject *parent) :
/*! Destructor of the \l{RuleEngine}. */
RuleEngine::~RuleEngine()
{
qCDebug(dcApplication) << "Shutting down \"Rule Engine\"";
}
/*! Ask the Engine to evaluate all the rules for the given \a event.

View File

@ -57,7 +57,7 @@ TcpServer::TcpServer(const ServerConfiguration &configuration, const QSslConfigu
/*! Destructor of this \l{TcpServer}. */
TcpServer::~TcpServer()
{
qCDebug(dcApplication) << "Shutting down \"TCP Server\"" << serverUrl().toString();
qCDebug(dcTcpServer()) << "Shutting down \"TCP Server\"" << serverUrl().toString();
stopServer();
}

View File

@ -115,7 +115,7 @@ WebServer::WebServer(const WebServerConfiguration &configuration, const QSslConf
/*! Destructor of this \l{WebServer}. */
WebServer::~WebServer()
{
qCDebug(dcApplication) << "Shutting down \"Webserver\"" << serverUrl().toString();
qCDebug(dcWebServer()) << "Shutting down \"Webserver\"" << serverUrl().toString();
this->close();
}

View File

@ -73,7 +73,7 @@ WebSocketServer::WebSocketServer(const ServerConfiguration &configuration, const
/*! Destructor of this \l{WebSocketServer}. */
WebSocketServer::~WebSocketServer()
{
qCDebug(dcApplication) << "Shutting down \"Websocket server\"" << serverUrl().toString();
qCDebug(dcWebSocketServer()) << "Shutting down \"Websocket server\"" << serverUrl().toString();
stopServer();
}

View File

@ -218,7 +218,6 @@ DeviceManager::DeviceManager(HardwareManager *hardwareManager, const QLocale &lo
/*! Destructor of the DeviceManager. Each loaded \l{DevicePlugin} will be deleted. */
DeviceManager::~DeviceManager()
{
qCDebug(dcApplication) << "Shutting down \"Device Manager\"";
foreach (Device *device, m_configuredDevices) {
storeDeviceStates(device);
}