Enable debug output when using emulator

This commit is contained in:
Matti Viljanen 2021-04-09 23:28:55 +03:00
parent 4a05dd6725
commit 709e384075
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -62,8 +62,12 @@ int main(int argc, char *argv[])
return 0;
}
}
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");
}
QGuiApplication* app = SailfishApp::application(argc, argv);