align debug prints on shutdown
This commit is contained in:
parent
9716d1db7b
commit
9372c6d524
@ -40,7 +40,6 @@ CloudManager::CloudManager(NetworkManager *networkManager, QObject *parent) : QO
|
|||||||
|
|
||||||
CloudManager::~CloudManager()
|
CloudManager::~CloudManager()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"CloudManager\"";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CloudManager::setServerUrl(const QString &serverUrl)
|
void CloudManager::setServerUrl(const QString &serverUrl)
|
||||||
|
|||||||
@ -123,7 +123,23 @@ GuhCore::~GuhCore()
|
|||||||
m_logger->logSystemEvent(m_timeManager->currentDateTime(), false);
|
m_logger->logSystemEvent(m_timeManager->currentDateTime(), false);
|
||||||
|
|
||||||
// Make sure DeviceManager is teared down at first so plugins don't access any ressources any more.
|
// 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;
|
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. */
|
/*! Destroyes the \l{GuhCore} instance. */
|
||||||
|
|||||||
@ -73,7 +73,6 @@ UpnpDiscoveryImplementation::UpnpDiscoveryImplementation(QNetworkAccessManager *
|
|||||||
/*! Destruct this \l{UpnpDiscoveryImplementation} object. */
|
/*! Destruct this \l{UpnpDiscoveryImplementation} object. */
|
||||||
UpnpDiscoveryImplementation::~UpnpDiscoveryImplementation()
|
UpnpDiscoveryImplementation::~UpnpDiscoveryImplementation()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"UPnP Server\"";
|
|
||||||
sendByeByeMessage();
|
sendByeByeMessage();
|
||||||
if (m_socket) {
|
if (m_socket) {
|
||||||
m_socket->waitForBytesWritten(1000);
|
m_socket->waitForBytesWritten(1000);
|
||||||
|
|||||||
@ -86,7 +86,6 @@ HardwareManagerImplementation::HardwareManagerImplementation(QObject *parent) :
|
|||||||
|
|
||||||
HardwareManagerImplementation::~HardwareManagerImplementation()
|
HardwareManagerImplementation::~HardwareManagerImplementation()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication()) << "Shutting down Hardware Manager";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Radio433 *HardwareManagerImplementation::radio433()
|
Radio433 *HardwareManagerImplementation::radio433()
|
||||||
|
|||||||
@ -174,7 +174,6 @@ LogEngine::LogEngine(const QString &logPath, QObject *parent):
|
|||||||
/*! Destructs the \l{LogEngine}. */
|
/*! Destructs the \l{LogEngine}. */
|
||||||
LogEngine::~LogEngine()
|
LogEngine::~LogEngine()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"Log Engine\"";
|
|
||||||
m_db.close();
|
m_db.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -322,7 +322,6 @@ RuleEngine::RuleEngine(QObject *parent) :
|
|||||||
/*! Destructor of the \l{RuleEngine}. */
|
/*! Destructor of the \l{RuleEngine}. */
|
||||||
RuleEngine::~RuleEngine()
|
RuleEngine::~RuleEngine()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"Rule Engine\"";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Ask the Engine to evaluate all the rules for the given \a event.
|
/*! Ask the Engine to evaluate all the rules for the given \a event.
|
||||||
|
|||||||
@ -57,7 +57,7 @@ TcpServer::TcpServer(const ServerConfiguration &configuration, const QSslConfigu
|
|||||||
/*! Destructor of this \l{TcpServer}. */
|
/*! Destructor of this \l{TcpServer}. */
|
||||||
TcpServer::~TcpServer()
|
TcpServer::~TcpServer()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"TCP Server\"" << serverUrl().toString();
|
qCDebug(dcTcpServer()) << "Shutting down \"TCP Server\"" << serverUrl().toString();
|
||||||
stopServer();
|
stopServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -115,7 +115,7 @@ WebServer::WebServer(const WebServerConfiguration &configuration, const QSslConf
|
|||||||
/*! Destructor of this \l{WebServer}. */
|
/*! Destructor of this \l{WebServer}. */
|
||||||
WebServer::~WebServer()
|
WebServer::~WebServer()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"Webserver\"" << serverUrl().toString();
|
qCDebug(dcWebServer()) << "Shutting down \"Webserver\"" << serverUrl().toString();
|
||||||
|
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,7 +73,7 @@ WebSocketServer::WebSocketServer(const ServerConfiguration &configuration, const
|
|||||||
/*! Destructor of this \l{WebSocketServer}. */
|
/*! Destructor of this \l{WebSocketServer}. */
|
||||||
WebSocketServer::~WebSocketServer()
|
WebSocketServer::~WebSocketServer()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"Websocket server\"" << serverUrl().toString();
|
qCDebug(dcWebSocketServer()) << "Shutting down \"Websocket server\"" << serverUrl().toString();
|
||||||
stopServer();
|
stopServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -218,7 +218,6 @@ DeviceManager::DeviceManager(HardwareManager *hardwareManager, const QLocale &lo
|
|||||||
/*! Destructor of the DeviceManager. Each loaded \l{DevicePlugin} will be deleted. */
|
/*! Destructor of the DeviceManager. Each loaded \l{DevicePlugin} will be deleted. */
|
||||||
DeviceManager::~DeviceManager()
|
DeviceManager::~DeviceManager()
|
||||||
{
|
{
|
||||||
qCDebug(dcApplication) << "Shutting down \"Device Manager\"";
|
|
||||||
foreach (Device *device, m_configuredDevices) {
|
foreach (Device *device, m_configuredDevices) {
|
||||||
storeDeviceStates(device);
|
storeDeviceStates(device);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user