improve debug prints
This commit is contained in:
parent
99d3275edc
commit
ffed28db9c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user