Reduced logging
This commit is contained in:
parent
f41877fbec
commit
2cdf7d5499
3 changed files with 9 additions and 8 deletions
|
@ -426,12 +426,13 @@ void LanLinkProvider::configureSslSocket(QSslSocket* socket, const QString& devi
|
|||
socket->setPeerVerifyMode(QSslSocket::QueryPeer);
|
||||
}
|
||||
|
||||
QObject::connect(socket, static_cast<void (QSslSocket::*)(const QList<QSslError>&)>(&QSslSocket::sslErrors), [](const QList<QSslError>& errors)
|
||||
{
|
||||
Q_FOREACH (const QSslError &error, errors) {
|
||||
qCDebug(KDECONNECT_CORE) << "SSL Error:" << error.errorString();
|
||||
}
|
||||
});
|
||||
//Usually SSL errors are only bad for trusted devices. Uncomment this section to log errors in any case, for debugging.
|
||||
//QObject::connect(socket, static_cast<void (QSslSocket::*)(const QList<QSslError>&)>(&QSslSocket::sslErrors), [](const QList<QSslError>& errors)
|
||||
//{
|
||||
// Q_FOREACH (const QSslError &error, errors) {
|
||||
// qCDebug(KDECONNECT_CORE) << "SSL Error:" << error.errorString();
|
||||
// }
|
||||
//});
|
||||
}
|
||||
|
||||
void LanLinkProvider::configureSocket(QSslSocket* socket) {
|
||||
|
|
|
@ -232,7 +232,7 @@ void Device::addLink(const NetworkPackage& identityPackage, DeviceLink* link)
|
|||
, incomingCapabilities = identityPackage.get<QStringList>("incomingCapabilities").toSet();
|
||||
|
||||
m_supportedPlugins = PluginLoader::instance()->pluginsForCapabilities(incomingCapabilities, outgoingCapabilities);
|
||||
qDebug() << "new plugins for" << m_deviceName << m_supportedPlugins << incomingCapabilities << outgoingCapabilities;
|
||||
//qDebug() << "new plugins for" << m_deviceName << m_supportedPlugins << incomingCapabilities << outgoingCapabilities;
|
||||
} else {
|
||||
m_supportedPlugins = PluginLoader::instance()->getPluginList().toSet();
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ QSet<QString> PluginLoader::pluginsForCapabilities(const QSet<QString>& incoming
|
|||
|| incoming.intersects(pluginOutgoingCapabilities) || outgoing.intersects(pluginIncomingCapabilities)) {
|
||||
ret += service.pluginId();
|
||||
} else {
|
||||
qDebug() << "discarding..." << service.pluginId();
|
||||
qCDebug(KDECONNECT_CORE) << "Not loading plugin" << service.pluginId() << "because device doesn't support it";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue