From 74cad3b5b583f44b47fa6ef2ff9e84445c15f386 Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Fri, 9 Apr 2021 23:29:34 +0300 Subject: [PATCH] Enable debug output when using emulator on daemon, too --- service/src/harbour-batterybuddy-daemon.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/service/src/harbour-batterybuddy-daemon.cpp b/service/src/harbour-batterybuddy-daemon.cpp index fd87fc7..2e391eb 100644 --- a/service/src/harbour-batterybuddy-daemon.cpp +++ b/service/src/harbour-batterybuddy-daemon.cpp @@ -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);