summaryrefslogtreecommitdiffstats
path: root/src/imports
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/imports
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/imports')
-rw-r--r--src/imports/bluetooth/qdeclarativebluetoothservice.cpp15
-rw-r--r--src/imports/bluetooth/qdeclarativebluetoothsocket.cpp2
2 files changed, 9 insertions, 8 deletions
diff --git a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
index 83a6fea7..0d5d0e68 100644
--- a/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
+++ b/src/imports/bluetooth/qdeclarativebluetoothservice.cpp
@@ -347,7 +347,7 @@ bool QDeclarativeBluetoothService::isRegistered() const
int QDeclarativeBluetoothServicePrivate::listen() {
if (m_protocol != "l2cap" && m_protocol != "rfcomm") {
- qDebug() << "Unknown protocol, can't make service" << m_protocol;
+ qWarning() << "Unknown protocol, can't make service" << m_protocol;
return -1;
}
QBluetoothServer::ServerType serverType;
@@ -409,7 +409,7 @@ void QDeclarativeBluetoothService::setRegistered(bool registered)
d->m_service->setServiceUuid(QBluetoothUuid(d->m_uuid));
- qDebug() << "name/uuid" << d->m_name << d->m_uuid << d->m_port;
+ //qDebug() << "name/uuid" << d->m_name << d->m_uuid << d->m_port;
d->m_service->setAttribute(QBluetoothServiceInfo::BrowseGroupList,
QBluetoothUuid(QBluetoothUuid::PublicBrowseGroup));
@@ -417,7 +417,7 @@ void QDeclarativeBluetoothService::setRegistered(bool registered)
QBluetoothServiceInfo::Sequence protocolDescriptorList;
QBluetoothServiceInfo::Sequence protocol;
- qDebug() << "Port" << d->m_port;
+ //qDebug() << "Port" << d->m_port;
if (d->m_protocol == "l2cap") {
protocol << QVariant::fromValue(QBluetoothUuid(QBluetoothUuid::L2cap))
@@ -436,11 +436,12 @@ void QDeclarativeBluetoothService::setRegistered(bool registered)
protocolDescriptorList);
if (d->m_service->registerService()) {
- qDebug() << "registered";
+ //qDebug() << "registered";
emit registeredChanged();
}
else {
- qDebug() << "Failed";
+ qWarning() << "Register service failed";
+ //TODO propaget this error to the user
}
}
@@ -463,7 +464,7 @@ QDeclarativeBluetoothSocket *QDeclarativeBluetoothService::nextClient()
return new QDeclarativeBluetoothSocket(socket, this, 0x0);
}
else {
- qDebug() << "Socket has no pending connection, failing";
+ qWarning() << "Socket has no pending connection, failing";
return 0x0;
}
}
@@ -480,7 +481,7 @@ void QDeclarativeBluetoothService::assignNextClient(QDeclarativeBluetoothSocket
return;
}
else {
- qDebug() << "Socket has no pending connection, failing";
+ qWarning() << "Socket has no pending connection, failing";
return;
}
}
diff --git a/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp b/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
index 41badc36..a3251c87 100644
--- a/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
+++ b/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
@@ -99,7 +99,7 @@ public:
void connect()
{
Q_ASSERT(m_service);
- qDebug() << "Connecting to: " << m_service->serviceInfo()->device().address().toString();
+ //qDebug() << "Connecting to: " << m_service->serviceInfo()->device().address().toString();
m_error = QLatin1String("No Error");
if (m_socket)