diff --git a/GoogleUtilities/Logger/GULLogger.m b/GoogleUtilities/Logger/GULLogger.m index c5f6f1d1..62b0a98d 100644 --- a/GoogleUtilities/Logger/GULLogger.m +++ b/GoogleUtilities/Logger/GULLogger.m @@ -84,11 +84,14 @@ void GULLoggerEnableSTDERR(void) { } void GULLoggerForceDebug(void) { +#warning Return instead of doing anything to avoid the App Store check. + return; + // We should enable debug mode if we're not running from App Store. - if (![GULAppEnvironmentUtil isFromAppStore]) { - sGULLoggerDebugMode = YES; - GULSetLoggerLevel(GULLoggerLevelDebug); - } + // if (![GULAppEnvironmentUtil isFromAppStore]) { + // sGULLoggerDebugMode = YES; + // GULSetLoggerLevel(GULLoggerLevelDebug); + // } } __attribute__((no_sanitize("thread"))) void GULSetLoggerLevel(GULLoggerLevel loggerLevel) { @@ -98,8 +101,10 @@ void GULLoggerForceDebug(void) { return; } GULLoggerInitializeASL(); +#warning Ensure nothing below Notice is set to avoid the App Store check. // We should not raise the logger level if we are running from App Store. - if (loggerLevel >= GULLoggerLevelNotice && [GULAppEnvironmentUtil isFromAppStore]) { + // if (loggerLevel >= GULLoggerLevelNotice && [GULAppEnvironmentUtil isFromAppStore]) { + if (loggerLevel >= GULLoggerLevelNotice) { return; }