From 7c320854b3328be3ba1bfe65adfc118d4e2313d1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 29 Sep 2018 14:16:28 -0700 Subject: [PATCH] Bluetooth: turn on logging earlier This way we should get logging output for the discovery phase as well. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 #include +#include extern QMap 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 }