mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +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:
@@ -155,7 +155,7 @@
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] viewDidAppear");
|
||||
MXLogDebug(@"[MasterTabBarController] viewDidAppear");
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
// Check whether we're not logged in
|
||||
@@ -295,7 +295,7 @@
|
||||
|
||||
if (mainSession)
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] initializeDataSources");
|
||||
MXLogDebug(@"[MasterTabBarController] initializeDataSources");
|
||||
|
||||
// Init the recents data source
|
||||
recentsDataSource = [[RecentsDataSource alloc] initWithMatrixSession:mainSession];
|
||||
@@ -470,7 +470,7 @@
|
||||
|
||||
- (void)showAuthenticationScreen
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] showAuthenticationScreen");
|
||||
MXLogDebug(@"[MasterTabBarController] showAuthenticationScreen");
|
||||
|
||||
// Check whether an authentication screen is not already shown or preparing
|
||||
if (!self.authViewController && !isAuthViewControllerPreparing)
|
||||
@@ -491,12 +491,12 @@
|
||||
{
|
||||
if (self.authViewController)
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] Universal link: Forward registration parameter to the existing AuthViewController");
|
||||
MXLogDebug(@"[MasterTabBarController] Universal link: Forward registration parameter to the existing AuthViewController");
|
||||
self.authViewController.externalRegistrationParameters = parameters;
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] Universal link: Prompt to logout current sessions and open AuthViewController to complete the registration");
|
||||
MXLogDebug(@"[MasterTabBarController] Universal link: Prompt to logout current sessions and open AuthViewController to complete the registration");
|
||||
|
||||
// Keep a ref on the params
|
||||
authViewControllerRegistrationParameters = parameters;
|
||||
@@ -514,7 +514,7 @@
|
||||
|
||||
- (void)showAuthenticationScreenAfterSoftLogout:(MXCredentials*)credentials;
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] showAuthenticationScreenAfterSoftLogout");
|
||||
MXLogDebug(@"[MasterTabBarController] showAuthenticationScreenAfterSoftLogout");
|
||||
|
||||
softLogoutCredentials = credentials;
|
||||
|
||||
@@ -1018,7 +1018,7 @@
|
||||
|
||||
- (void)promptUserBeforeUsingAnalytics
|
||||
{
|
||||
NSLog(@"[MasterTabBarController]: Invite the user to send crash reports");
|
||||
MXLogDebug(@"[MasterTabBarController]: Invite the user to send crash reports");
|
||||
|
||||
__weak typeof(self) weakSelf = self;
|
||||
|
||||
@@ -1079,7 +1079,7 @@
|
||||
|
||||
- (void)presentVerifyCurrentSessionAlertWithSession:(MXSession*)session
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] presentVerifyCurrentSessionAlertWithSession");
|
||||
MXLogDebug(@"[MasterTabBarController] presentVerifyCurrentSessionAlertWithSession");
|
||||
|
||||
[currentAlert dismissViewControllerAnimated:NO completion:nil];
|
||||
|
||||
@@ -1138,7 +1138,7 @@
|
||||
|
||||
- (void)presentReviewUnverifiedSessionsAlertWithSession:(MXSession*)session
|
||||
{
|
||||
NSLog(@"[MasterTabBarController] presentReviewUnverifiedSessionsAlertWithSession");
|
||||
MXLogDebug(@"[MasterTabBarController] presentReviewUnverifiedSessionsAlertWithSession");
|
||||
|
||||
[currentAlert dismissViewControllerAnimated:NO completion:nil];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user