diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-29 14:16:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-29 14:16:37 -0700 |
commit | 7c320854b3328be3ba1bfe65adfc118d4e2313d1 (patch) | |
tree | 828b8a005f2ff449ef693f5c87b0b53546ab8435 | |
parent | fbc4b2ac722820f41f25cd72eeda3ce54cc356d0 (diff) | |
download | subsurface-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.cpp | 2 |
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 } |