diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-20 06:51:06 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-20 06:51:51 -0400 |
commit | 59bf217157461e3406f3b7a08ef64367e2223531 (patch) | |
tree | ddd6627587633b2092854f1afb40640156b61ba8 /desktop-widgets/plugins/facebook | |
parent | bebee64ca928f98e2739dcff1126c6de22874885 (diff) | |
download | subsurface-59bf217157461e3406f3b7a08ef64367e2223531.tar.gz |
Turn off Facebook debug messages unless verbose
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins/facebook')
-rw-r--r-- | desktop-widgets/plugins/facebook/facebookconnectwidget.cpp | 2 |
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); } |