Print debug message on all platforms activating it, not only Windows
This commit is contained in:
parent
afa1e88e62
commit
ee8f3b41d0
2 changed files with 1 additions and 1 deletions
|
@ -110,6 +110,7 @@ void Log::error(const char *fmt, ...) {
|
||||||
void Log::setDebug() {
|
void Log::setDebug() {
|
||||||
Log *log = Log::instance();
|
Log *log = Log::instance();
|
||||||
log->d->debug = true;
|
log->d->debug = true;
|
||||||
|
Log::debug("Debug message output enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Log::setLogOutput(LogOutput logOutput) {
|
void Log::setLogOutput(LogOutput logOutput) {
|
||||||
|
|
|
@ -123,7 +123,6 @@ void WINAPI TelldusWinService::serviceMain( DWORD argc, TCHAR* argv[] ) {
|
||||||
for(unsigned int i = 1; i < argc; ++i) {
|
for(unsigned int i = 1; i < argc; ++i) {
|
||||||
if (wcscmp(argv[i], L"--debug") == 0) {
|
if (wcscmp(argv[i], L"--debug") == 0) {
|
||||||
Log::setDebug();
|
Log::setDebug();
|
||||||
Log::debug("Debug message output enabled");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue