QLoggingRegistry: Misc fixes

Fix the name of the env var in the debug output for QT_LOGGING_CONF
and adjust the documentation to not suggest to add quotes around the
value of QT_LOGGING_RULES as this will not get properly parsed.

Pick-to: 6.8
Change-Id: I2da4f841c42c6af6e73d09f19d9baada3582bcd1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Christian Ehrlicher 2024-08-17 21:12:25 +02:00
parent f5b7e8a3fb
commit 753d035e15
2 changed files with 2 additions and 2 deletions

View File

@ -17,5 +17,5 @@
//! [2]
//! [3]
QT_LOGGING_RULES="*.debug=false;driver.usb.debug=true"
QT_LOGGING_RULES=*.debug=false;driver.usb.debug=true
//! [3]

View File

@ -278,7 +278,7 @@ void QLoggingRegistry::initializeRules()
{
if (qtLoggingDebug()) {
debugMsg("Initializing the rules database ...");
debugMsg("Checking %s environment variable", "QTLOGGING_CONF");
debugMsg("Checking %s environment variable", "QT_LOGGING_CONF");
}
QList<QLoggingRule> er, qr, cr;
// get rules from environment