improve debug prints

This commit is contained in:
Michael Zanetti 2018-08-03 18:26:26 +02:00
parent 99d3275edc
commit ffed28db9c
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ void BluetoothServiceDiscovery::onServiceDiscoveryFinished()
// If discover was called, but never stopDiscover, continue discovery
if (m_enabed) {
if (!m_localDevice->isValid() || m_localDevice->hostMode() == QBluetoothLocalDevice::HostPoweredOff) {
qWarning() << "BluetoothServiceDiscovery: Not restart discovery, the bluetooth adapter is not available.";
qWarning() << "BluetoothServiceDiscovery: Not restarting discovery, the bluetooth adapter is not available.";
return;
}

View File

@ -72,7 +72,7 @@ void ZeroconfDiscovery::serviceEntryAdded(const QZeroConfService &entry)
if (!device) {
device = new DiscoveryDevice(DiscoveryDevice::DeviceTypeNetwork, m_discoveryModel);
device->setUuid(uuid);
// qDebug() << "Adding new host to model";
qDebug() << "ZeroConf: Adding new host to model";
m_discoveryModel->addDevice(device);
}
device->setHostAddress(entry.ip());
@ -80,7 +80,7 @@ void ZeroconfDiscovery::serviceEntryAdded(const QZeroConfService &entry)
device->setVersion(version);
PortConfig *portConfig = device->portConfigs()->find(entry.port());
if (!portConfig) {
// qDebug() << "Adding new port config";
qDebug() << "ZeroConf: Adding new port config";
portConfig = new PortConfig(entry.port());
device->portConfigs()->insert(portConfig);
}