]> Some of my projects - aniplayer.git/commitdiff
Move stats to a different logging category
authorAPTX <marek321@gmail.com>
Sun, 25 Nov 2018 10:56:22 +0000 (19:56 +0900)
committerAPTX <marek321@gmail.com>
Sun, 25 Nov 2018 10:56:22 +0000 (19:56 +0900)
core/main.cpp
featureplugins/feature_annotations/featureannotations.cpp

index c62e33475e2a68e490614d479c8c10a5e1d6673a..9d103811485ed4b115e3dafb4a963b36d39a92bc 100644 (file)
@@ -12,7 +12,8 @@
 #include <QLoggingCategory>
 
 int main(int argc, char *argv[]) {
-  QLoggingCategory::setFilterRules(QStringLiteral("*.verbose=false"));
+  QLoggingCategory::setFilterRules(
+      QStringLiteral("*.verbose=false\n*.stats=false"));
 
   QtSingleApplication app(argc, argv);
   app.setApplicationDisplayName("AniPlayer");
index 729c57159582fd41156a58dd585f67503a54191f..39cc0634cf5090e8543bcd17cafbb689ca292b91 100644 (file)
@@ -4,6 +4,7 @@
 #include <QLoggingCategory>
 
 Q_LOGGING_CATEGORY(annotationsCategory, "Annotations")
+Q_LOGGING_CATEGORY(annotationsStatsCategory, "Annotations.stats")
 Q_LOGGING_CATEGORY(annotationsVerboseCategory, "Annotations.verbose")
 
 #include <dlib/dnn.h>
@@ -68,7 +69,7 @@ FeatureAnnoationsInstance::FeatureAnnoationsInstance(
 
   m_fpsTimer.setInterval(1000);
   connect(&m_fpsTimer, &QTimer::timeout, [&]() {
-    qCDebug(annotationsCategory)
+    qCDebug(annotationsStatsCategory)
         << "Did" << m_fpsCounter << "frames per seoncd";
     m_fpsCounter = 0;
   });