add more debug prints

This commit is contained in:
Michael Zanetti 2017-11-17 20:49:09 +01:00
parent 42eee3dcf5
commit 61c20e2001
2 changed files with 5 additions and 0 deletions

View File

@ -101,11 +101,13 @@ void CloudManager::setEnabled(bool enabled)
return;
}
qCDebug(dcCloud()) << "Enabling cloud connection.";
m_enabled = true;
if (!m_awsConnector->isConnected() && m_networkManager->state() == NetworkManager::NetworkManagerStateConnectedGlobal) {
connect2aws();
}
} else {
qCDebug(dcCloud()) << "Disabling cloud connection.";
m_enabled = false;
m_awsConnector->disconnectAWS();
}

View File

@ -442,10 +442,13 @@ void GuhCore::init() {
m_serverManager = new ServerManager(m_configuration, this);
// Create the NetworkManager
qCDebug(dcApplication) << "Creating Network Manager";
m_networkManager = new NetworkManager(this);
qCDebug(dcApplication) << "Creating User Manager";
m_userManager = new UserManager(this);
qCDebug(dcApplication) << "Creating Cloud Manager";
m_cloudManager = new CloudManager(m_networkManager, this);
m_cloudManager->setDeviceId(m_configuration->serverUuid());
m_cloudManager->setDeviceName(m_configuration->serverName());