summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-29 14:16:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-29 14:16:37 -0700
commit7c320854b3328be3ba1bfe65adfc118d4e2313d1 (patch)
tree828b8a005f2ff449ef693f5c87b0b53546ab8435
parentfbc4b2ac722820f41f25cd72eeda3ce54cc356d0 (diff)
downloadsubsurface-7c320854b3328be3ba1bfe65adfc118d4e2313d1.tar.gz
Bluetooth: turn on logging earlier
This way we should get logging output for the discovery phase as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/btdiscovery.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index d2da238c6..d938aca70 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -5,6 +5,7 @@
#include "core/libdivecomputer.h"
#include <QTimer>
#include <QDebug>
+#include <QLoggingCategory>
extern QMap<QString, dc_descriptor_t *> descriptorLookup;
@@ -78,6 +79,7 @@ BTDiscovery::BTDiscovery(QObject*) : m_btValid(false),
}
m_instance = this;
#if defined(BT_SUPPORT)
+ QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
BTDiscoveryReDiscover();
#endif
}