mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 02:23:55 -07:00
Update QT_LOGGING_CONF if not set (#5578)
This commit is contained in:
parent
edaca772c5
commit
07ca243d48
1 changed files with 4 additions and 2 deletions
|
|
@ -190,8 +190,10 @@ int main(int argc, char *argv[])
|
||||||
const QByteArray configPath = "";
|
const QByteArray configPath = "";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set the QT_LOGGING_CONF environment variable
|
if (!qEnvironmentVariableIsSet(("QT_LOGGING_CONF"))) {
|
||||||
qputenv("QT_LOGGING_CONF", configPath);
|
// Set the QT_LOGGING_CONF environment variable
|
||||||
|
qputenv("QT_LOGGING_CONF", configPath);
|
||||||
|
}
|
||||||
qSetMessagePattern(
|
qSetMessagePattern(
|
||||||
"\033[0m[%{time yyyy-MM-dd h:mm:ss.zzz} "
|
"\033[0m[%{time yyyy-MM-dd h:mm:ss.zzz} "
|
||||||
"%{if-debug}\033[36mD%{endif}%{if-info}\033[32mI%{endif}%{if-warning}\033[33mW%{endif}%{if-critical}\033[31mC%{"
|
"%{if-debug}\033[36mD%{endif}%{if-info}\033[32mI%{endif}%{if-warning}\033[33mW%{endif}%{if-critical}\033[31mC%{"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue