summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-09-17 16:30:32 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-18 17:24:33 +0200
commit9fa7195f0f2b8e7148215df564240dbfdad34935 (patch)
treeadf84afa4cb65801c633186f59e9e8ea8d253edd /src/bluetooth/qbluetoothserviceinfo_bluez.cpp
parent4810f41772cd0b86f04064f556d2c88cdc4a548f (diff)
Lower the verbosity of bluetooth
Remove some qDebug statements and change qDebugs to qWarning in case of an error. Task-number: QTBUG-32253 Change-Id: Ia647d3f485cae56cc9f9c6725400f5b4617b7bf7 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothserviceinfo_bluez.cpp')
-rw-r--r--src/bluetooth/qbluetoothserviceinfo_bluez.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
index 885ac0ed..a98b4a46 100644
--- a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
+++ b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
@@ -163,7 +163,7 @@ static void writeAttribute(QXmlStreamWriter *stream, const QVariant &attribute)
}
break;
default:
- qDebug() << "Unknown variant type", attribute.userType();
+ qWarning() << "Unknown variant type", attribute.userType();
}
}
@@ -237,7 +237,7 @@ bool QBluetoothServiceInfoPrivate::ensureSdpConnection() const
bool QBluetoothServiceInfoPrivate::registerService() const
{
if (!ensureSdpConnection()) {
- qDebug() << "SDP not connected. Cannot register";
+ qWarning() << "SDP not connected. Cannot register";
return false;
}
@@ -272,7 +272,7 @@ bool QBluetoothServiceInfoPrivate::registerService() const
QDBusPendingReply<uint> reply = service->AddRecord(xmlServiceRecord);
reply.waitForFinished();
if (reply.isError()) {
- qDebug() << "AddRecord returned error" << reply.error();
+ qWarning() << "AddRecord returned error" << reply.error();
return false;
}
@@ -281,7 +281,7 @@ bool QBluetoothServiceInfoPrivate::registerService() const
QDBusPendingReply<> reply = service->UpdateRecord(serviceRecord, xmlServiceRecord);
reply.waitForFinished();
if (reply.isError()) {
- qDebug() << "UpdateRecord returned error" << reply.error();
+ qWarning() << "UpdateRecord returned error" << reply.error();
return false;
}
}