mirror of
https://github.com/google/santa.git
synced 2026-04-24 03:00:12 -04:00
Remove DebugLogging config option, change to --debug flag instead.
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
|
||||
#import "SNTLogging.h"
|
||||
|
||||
#import "SNTConfigurator.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
static int logLevel = LOG_LEVEL_DEBUG; // default to info
|
||||
#else
|
||||
@@ -35,7 +33,7 @@ void logMessage(int level, FILE *destination, NSString *format, ...) {
|
||||
binaryName = [[NSProcessInfo processInfo] processName];
|
||||
|
||||
// If debug logging is enabled, the process must be restarted.
|
||||
if ([[SNTConfigurator configurator] debugLogging]) {
|
||||
if ([[[NSProcessInfo processInfo] arguments] containsObject:@"--debug"]) {
|
||||
logLevel = LOG_LEVEL_DEBUG;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user