Log when we change logging state.

This commit is contained in:
Matthew Chen 2018-07-26 09:21:39 -04:00
parent 103a8dc579
commit f611abc16f

View file

@ -267,10 +267,12 @@ NS_ASSUME_NONNULL_BEGIN
- (void)didToggleEnableLogSwitch:(UISwitch *)sender
{
if (!sender.isOn) {
DDLogInfo(@"%@ disabling logging.", self.logTag);
[[DebugLogger sharedLogger] wipeLogs];
[[DebugLogger sharedLogger] disableFileLogging];
} else {
[[DebugLogger sharedLogger] enableFileLogging];
DDLogInfo(@"%@ enabling logging.", self.logTag);
}
[OWSPreferences setIsLoggingEnabled:sender.isOn];