From 59bf217157461e3406f3b7a08ef64367e2223531 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 20 Oct 2017 06:51:06 -0400 Subject: Turn off Facebook debug messages unless verbose Signed-off-by: Dirk Hohndel --- desktop-widgets/plugins/facebook/facebookconnectwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3-70-g09d2