mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +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:
@@ -190,7 +190,7 @@ static NSAttributedString *timestampVerticalWhitespace = nil;
|
||||
// which takes place on the main thread.
|
||||
if ([NSThread currentThread] != [NSThread mainThread])
|
||||
{
|
||||
NSLog(@"[RoomBubbleCellData] prepareBubbleComponentsPosition called on wrong thread");
|
||||
MXLogDebug(@"[RoomBubbleCellData] prepareBubbleComponentsPosition called on wrong thread");
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
[self refreshBubbleComponentsPosition];
|
||||
});
|
||||
@@ -217,7 +217,7 @@ static NSAttributedString *timestampVerticalWhitespace = nil;
|
||||
// is requested during the rendering step which takes place on the main thread.
|
||||
if ([NSThread currentThread] != [NSThread mainThread])
|
||||
{
|
||||
NSLog(@"[RoomBubbleCellData] attributedTextMessage called on wrong thread");
|
||||
MXLogDebug(@"[RoomBubbleCellData] attributedTextMessage called on wrong thread");
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
self.attributedTextMessage = [self refreshAttributedTextMessage];
|
||||
});
|
||||
@@ -544,7 +544,7 @@ static NSAttributedString *timestampVerticalWhitespace = nil;
|
||||
// which takes place on the main thread.
|
||||
if ([NSThread currentThread] != [NSThread mainThread])
|
||||
{
|
||||
NSLog(@"[RoomBubbleCellData] prepareBubbleComponentsPosition called on wrong thread");
|
||||
MXLogDebug(@"[RoomBubbleCellData] prepareBubbleComponentsPosition called on wrong thread");
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
updateAdditionalHeight();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user