diff --git a/libguh-core/cloudmanager.cpp b/libguh-core/cloudmanager.cpp index c8217706..6cc2d6f2 100644 --- a/libguh-core/cloudmanager.cpp +++ b/libguh-core/cloudmanager.cpp @@ -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(); } diff --git a/libguh-core/guhcore.cpp b/libguh-core/guhcore.cpp index cf733866..290a84dd 100644 --- a/libguh-core/guhcore.cpp +++ b/libguh-core/guhcore.cpp @@ -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());