diff --git a/telldus-core/service/Log.cpp b/telldus-core/service/Log.cpp index f555378a..eef21e59 100644 --- a/telldus-core/service/Log.cpp +++ b/telldus-core/service/Log.cpp @@ -110,6 +110,7 @@ void Log::error(const char *fmt, ...) { void Log::setDebug() { Log *log = Log::instance(); log->d->debug = true; + Log::debug("Debug message output enabled"); } void Log::setLogOutput(LogOutput logOutput) { diff --git a/telldus-core/service/TelldusWinService_win.cpp b/telldus-core/service/TelldusWinService_win.cpp index 29e41b60..3fb51221 100644 --- a/telldus-core/service/TelldusWinService_win.cpp +++ b/telldus-core/service/TelldusWinService_win.cpp @@ -123,7 +123,6 @@ void WINAPI TelldusWinService::serviceMain( DWORD argc, TCHAR* argv[] ) { for(unsigned int i = 1; i < argc; ++i) { if (wcscmp(argv[i], L"--debug") == 0) { Log::setDebug(); - Log::debug("Debug message output enabled"); } }