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>
This commit is contained in:
Dirk Hohndel 2018-09-29 14:16:28 -07:00
parent fbc4b2ac72
commit 7c320854b3

View file

@ -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
}