From: APTX Date: Sun, 25 Nov 2018 10:56:22 +0000 (+0900) Subject: Move stats to a different logging category X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=9f20ce554170f810ba38d7e389a41c676b26fde9;p=aniplayer.git Move stats to a different logging category --- diff --git a/core/main.cpp b/core/main.cpp index c62e334..9d10381 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -12,7 +12,8 @@ #include 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"); diff --git a/featureplugins/feature_annotations/featureannotations.cpp b/featureplugins/feature_annotations/featureannotations.cpp index 729c571..39cc063 100644 --- a/featureplugins/feature_annotations/featureannotations.cpp +++ b/featureplugins/feature_annotations/featureannotations.cpp @@ -4,6 +4,7 @@ #include Q_LOGGING_CATEGORY(annotationsCategory, "Annotations") +Q_LOGGING_CATEGORY(annotationsStatsCategory, "Annotations.stats") Q_LOGGING_CATEGORY(annotationsVerboseCategory, "Annotations.verbose") #include @@ -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; });