SDA-3370 Disabled logging to stdout

This commit is contained in:
Mattias Gustavsson 2021-10-12 13:33:23 +02:00
parent 93189b9cd8
commit f0baa1ebf2
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_WARNINGS
#define LOG_TO_CONSOLE_FOR_DEBUGGING
//#define LOG_TO_CONSOLE_FOR_DEBUGGING
#include <windows.h>
#include <aclapi.h>

View File

@ -580,7 +580,11 @@ void service_main( bool* service_is_running ) {
int main( int argc, char** argv ) {
log_init( true );
if( argc >= 2 && stricmp( argv[ 1 ], "test" ) == 0 ) {
log_init( true );
} else {
log_init( false );
}
// Debug helpers for install/uninstall
if( argc >= 2 && stricmp( argv[ 1 ], "install" ) == 0 ) {