Add some debug prints to debug more issues

This commit is contained in:
Michael Zanetti 2019-07-08 12:24:25 +02:00
parent 87f130c55e
commit f852b8b71d

View File

@ -406,6 +406,15 @@ void NymeaConnection::updateActiveBearers()
foreach (const QNetworkConfiguration &config, configs) {
qDebug() << "Inactive network config:" << config.name() << config.bearerTypeFamily() << config.bearerTypeName();
}
// Retrying with a new config manager:
QNetworkConfigurationManager *newMan = new QNetworkConfigurationManager(this);
qDebug() << "Trying with new config manager:";
configs = newMan->allConfigurations();
foreach (const QNetworkConfiguration &config, configs) {
qDebug() << "Config:" << config.name() << config.bearerTypeFamily() << config.bearerTypeName() << config.state();
}
newMan->deleteLater();
}
if (m_availableBearerTypes != availableBearerTypes) {