Output when debug mode is enabled

This commit is contained in:
Micke Prag 2012-01-25 17:43:16 +01:00
parent 5f1d6e7fe5
commit bf72debefb

View file

@ -123,6 +123,7 @@ 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");
}
}