Enable debug output when using emulator on daemon, too

This commit is contained in:
Matti Viljanen 2021-04-09 23:29:34 +03:00
parent 709e384075
commit 74cad3b5b5
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -45,8 +45,12 @@ int main(int argc, char** argv)
return EXIT_SUCCESS;
}
}
if(!qEnvironmentVariableIsSet(logEnvVar))
qputenv(logEnvVar, "*.info=false;*.debug=false");
if(!qEnvironmentVariableIsSet(logEnvVar)) {
if(!QHostInfo::localHostName().contains("SailfishEmul"))
qputenv(logEnvVar, "*.info=false;*.debug=false");
else
qputenv(logEnvVar, "*.info=true");
}
QCoreApplication app(argc, argv);