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.

Change-Id: I2da4f841c42c6af6e73d09f19d9baada3582bcd1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 753d035e152f0572ba99717d04116a882a506bef)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Christian Ehrlicher 2024-08-17 21:12:25 +02:00 committed by Qt Cherry-pick Bot
parent 2f8d5ea487
commit 328a2642dd
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