summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-20 06:51:06 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-20 06:51:51 -0400
commit59bf217157461e3406f3b7a08ef64367e2223531 (patch)
treeddd6627587633b2092854f1afb40640156b61ba8 /desktop-widgets
parentbebee64ca928f98e2739dcff1126c6de22874885 (diff)
downloadsubsurface-59bf217157461e3406f3b7a08ef64367e2223531.tar.gz
Turn off Facebook debug messages unless verbose
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 2d23ee5af..17765cdee 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -44,6 +44,8 @@ FacebookManager::FacebookManager(QObject *parent) :
QObject(parent),
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);
}