Have a filter rule capturing all of nextcloud debug
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 13:32:59 +0000 (15:32 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 1 Jul 2020 13:39:52 +0000 (15:39 +0200)
This was half broken before that commit and the previous one since some
of the categories would not be captured.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/logger.cpp

index 5773532a26b77a62f922fc5d6c8cac5f63038f20..6827308e1acccc23bfe04fda9a111f93c51a82a7 100644 (file)
@@ -216,7 +216,7 @@ void Logger::setLogFlush(bool flush)
 
 void Logger::setLogDebug(bool debug)
 {
-    QLoggingCategory::setFilterRules(debug ? QStringLiteral("sync.*.debug=true\ngui.*.debug=true") : QString());
+    QLoggingCategory::setFilterRules(debug ? QStringLiteral("nextcloud.*.debug=true") : QString());
     _logDebug = debug;
 }