Merge pull request #13146 from sethalves/fix-logging-less-when-verbose

don't enable so much logging when 'verbose logging' is turned on
This commit is contained in:
Zach Fox 2018-05-11 10:44:48 -07:00 committed by GitHub
commit a6dd95e31b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -2253,8 +2253,11 @@ void Application::updateVerboseLogging() {
}
bool enable = menu->isOptionChecked(MenuOption::VerboseLogging);
QString rules = "*.debug=%1\n"
"*.info=%1";
QString rules =
"hifi.*.debug=%1\n"
"hifi.*.info=%1\n"
"hifi.audio-stream.debug=false\n"
"hifi.audio-stream.info=false";
rules = rules.arg(enable ? "true" : "false");
QLoggingCategory::setFilterRules(rules);
}

View file

@ -12,5 +12,4 @@
#include "AudioLogging.h"
Q_LOGGING_CATEGORY(audio, "hifi.audio")
Q_LOGGING_CATEGORY(audiostream, "hifi.audio-stream", QtWarningMsg)
Q_LOGGING_CATEGORY(audiostream, "hifi.audio-stream")