mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Adopt consolidated logging mechanism (#4370)
* Adopted the new MXLog and replaced NSLog throughout the application - vector-im/element-ios/issues/4351 * Replaced NSLog() and print() usages with MXLog.debug() * Added swiftlint rules for NSLog(), print(), println() and os_log() * Escape paths used to run script build phases for swiftlint and swiftgen
This commit is contained in:
@@ -244,7 +244,7 @@ enum {
|
||||
completion();
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
NSLog(@"[ManageSessionVC] reloadDeviceWithCompletion failed. Error: %@", error);
|
||||
MXLogDebug(@"[ManageSessionVC] reloadDeviceWithCompletion failed. Error: %@", error);
|
||||
[self reloadData];
|
||||
completion();
|
||||
}];
|
||||
@@ -652,7 +652,7 @@ enum {
|
||||
}];
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[ManageSessionVC] Rename device (%@) failed", self->device.deviceId);
|
||||
MXLogDebug(@"[ManageSessionVC] Rename device (%@) failed", self->device.deviceId);
|
||||
[self reloadDeviceWithCompletion:^{
|
||||
[self.activityIndicator stopAnimating];
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
@@ -709,7 +709,7 @@ enum {
|
||||
// We cannot stay in this screen anymore
|
||||
[self withdrawViewControllerAnimated:YES completion:nil];
|
||||
} failure:^(NSError *error) {
|
||||
NSLog(@"[ManageSessionVC] Delete device (%@) failed", self->device.deviceId);
|
||||
MXLogDebug(@"[ManageSessionVC] Delete device (%@) failed", self->device.deviceId);
|
||||
animationCompletion();
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user