Print debug message on all platforms activating it, not only Windows

This commit is contained in:
Micke Prag 2012-01-26 11:54:51 +01:00
parent afa1e88e62
commit ee8f3b41d0
2 changed files with 1 additions and 1 deletions

View file

@ -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) {

View file

@ -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");
}
}