mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Log when we change logging state.
This commit is contained in:
parent
103a8dc579
commit
f611abc16f
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue