From 7454240adb23dcfe9384c0a5e809a1e3e92c07f1 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Sat, 9 Apr 2016 23:24:19 -0400 Subject: [PATCH] Reenable writing to stderr on *nix platforms for useful debugging messages --- src/main.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index d51a8b25b..19402229a 100644 --- a/src/main.cc +++ b/src/main.cc @@ -114,6 +114,12 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) int main(int argc, char *argv[]) { +#ifdef Q_OS_UNIX + //FOrce writing to the console on UNIX/BSD devices + if (!qEnvironmentVariableIsSet("QT_LOGGING_TO_CONSOLE")) + qputenv("QT_LOGGING_TO_CONSOLE", "1"); +#endif + // install the message handler AppMessages::installHandler(); @@ -150,7 +156,6 @@ int main(int argc, char *argv[]) break; } } - #endif // The following calls to qRegisterMetaType are done to silence debug output which warns -- 2.22.0