mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Turn off Facebook debug messages unless verbose
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bebee64ca9
commit
59bf217157
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ FacebookManager::FacebookManager(QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
manager(new QNetworkAccessManager(this))
|
manager(new QNetworkAccessManager(this))
|
||||||
{
|
{
|
||||||
|
// log only in verbose mode
|
||||||
|
QLoggingCategory::setFilterRules(QStringLiteral("subsurface.facebook=%1").arg(verbose ? "true" : "false"));
|
||||||
connect(this, &FacebookManager::albumIdReceived, this, &FacebookManager::sendDiveToAlbum);
|
connect(this, &FacebookManager::albumIdReceived, this, &FacebookManager::sendDiveToAlbum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue