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:
Stefan Ceriu
2021-06-03 11:30:07 +03:00
committed by GitHub
parent f70b6df6c9
commit 43f6c44c78
94 changed files with 689 additions and 630 deletions
+3 -3
View File
@@ -575,7 +575,7 @@
duration:0
interToneGap:0];
NSLog(@"[CallViewController] Sending DTMF tones %@", result ? @"succeeded": @"failed");
MXLogDebug(@"[CallViewController] Sending DTMF tones %@", result ? @"succeeded": @"failed");
}
#pragma mark - CallTransferMainViewControllerDelegate
@@ -615,9 +615,9 @@
withTransferee:transfereeUser
consultFirst:consult
success:^(NSString * _Nonnull newCallId){
NSLog(@"Call transfer succeeded with new call ID: %@", newCallId);
MXLogDebug(@"Call transfer succeeded with new call ID: %@", newCallId);
} failure:^(NSError * _Nullable error) {
NSLog(@"Call transfer failed with error: %@", error);
MXLogDebug(@"Call transfer failed with error: %@", error);
failureBlock(error);
}];
};