mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:11:45 +00:00
Tidy up some logs that have a prefix. (#4443)
We haven't needed these for ages, Rust adds them to the log lines.
This commit is contained in:
@@ -336,7 +336,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
|||||||
}
|
}
|
||||||
|
|
||||||
func notificationTapped(content: UNNotificationContent) async {
|
func notificationTapped(content: UNNotificationContent) async {
|
||||||
MXLog.info("[AppCoordinator] tappedNotification")
|
MXLog.info("Tapped Notification")
|
||||||
|
|
||||||
guard let roomID = content.roomID,
|
guard let roomID = content.roomID,
|
||||||
content.receiverID != nil else {
|
content.receiverID != nil else {
|
||||||
@@ -355,7 +355,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handleInlineReply(_ service: NotificationManagerProtocol, content: UNNotificationContent, replyText: String) async {
|
func handleInlineReply(_ service: NotificationManagerProtocol, content: UNNotificationContent, replyText: String) async {
|
||||||
MXLog.info("[AppCoordinator] handle notification reply")
|
MXLog.info("Handle notification reply")
|
||||||
|
|
||||||
guard let roomID = content.roomID else {
|
guard let roomID = content.roomID else {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ struct MessageText: UIViewRepresentable {
|
|||||||
do {
|
do {
|
||||||
attributedString = try AttributedString(textView.attributedText, including: \.elementX)
|
attributedString = try AttributedString(textView.attributedText, including: \.elementX)
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[MessageText] Failed to update attributedString: \(error)]")
|
MXLog.error("Failed to update attributedString: \(error)]")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ final class PillAttachmentViewProvider: NSTextAttachmentViewProvider, NSSecureCo
|
|||||||
|
|
||||||
guard let textAttachment = textAttachment as? PillTextAttachment,
|
guard let textAttachment = textAttachment as? PillTextAttachment,
|
||||||
let pillData = textAttachment.pillData else {
|
let pillData = textAttachment.pillData else {
|
||||||
MXLog.failure("[PillAttachmentViewProvider]: attachment is missing data or not of expected class")
|
MXLog.failure("Attachment is missing data or not of expected class")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ final class PillAttachmentViewProvider: NSTextAttachmentViewProvider, NSSecureCo
|
|||||||
context = PillContext(timelineContext: timelineContext, data: pillData)
|
context = PillContext(timelineContext: timelineContext, data: pillData)
|
||||||
mediaProvider = timelineContext.mediaProvider
|
mediaProvider = timelineContext.mediaProvider
|
||||||
} else {
|
} else {
|
||||||
MXLog.failure("[PillAttachmentViewProvider]: missing room context")
|
MXLog.failure("Missing room context")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ final class SoftLogoutScreenCoordinator: CoordinatorProtocol {
|
|||||||
viewModel.actions
|
viewModel.actions
|
||||||
.sink { [weak self] action in
|
.sink { [weak self] action in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
MXLog.info("[SoftLogoutCoordinator] SoftLogoutViewModel did complete with result: \(action).")
|
MXLog.info("Did complete with result: \(action).")
|
||||||
|
|
||||||
switch action {
|
switch action {
|
||||||
case .login(let password):
|
case .login(let password):
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ class CallScreenViewModel: CallScreenViewModelType, CallScreenViewModelProtocol
|
|||||||
|
|
||||||
private func handleOutputDeviceSelected(deviceID: String) {
|
private func handleOutputDeviceSelected(deviceID: String) {
|
||||||
let isEarpiece = deviceID == Self.earpieceID
|
let isEarpiece = deviceID == Self.earpieceID
|
||||||
MXLog.info("[handleOutputDeviceSelected] is earpiece: \(isEarpiece)")
|
MXLog.info("Is earpiece: \(isEarpiece)")
|
||||||
UIDevice.current.isProximityMonitoringEnabled = isEarpiece
|
UIDevice.current.isProximityMonitoringEnabled = isEarpiece
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
notificationCenter.delegate = self
|
notificationCenter.delegate = self
|
||||||
|
|
||||||
notificationsEnabled = appSettings.enableNotifications
|
notificationsEnabled = appSettings.enableNotifications
|
||||||
MXLog.info("[NotificationManager] app setting 'enableNotifications' is '\(notificationsEnabled)'")
|
MXLog.info("App setting 'enableNotifications' is '\(notificationsEnabled)'")
|
||||||
|
|
||||||
// Listen for changes to AppSettings.enableNotifications
|
// Listen for changes to AppSettings.enableNotifications
|
||||||
appSettings.$enableNotifications
|
appSettings.$enableNotifications
|
||||||
@@ -62,14 +62,14 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
Task {
|
Task {
|
||||||
do {
|
do {
|
||||||
let permissionGranted = try await notificationCenter.requestAuthorization(options: [.alert, .sound, .badge])
|
let permissionGranted = try await notificationCenter.requestAuthorization(options: [.alert, .sound, .badge])
|
||||||
MXLog.info("[NotificationManager] permission granted: \(permissionGranted)")
|
MXLog.info("Permission granted: \(permissionGranted)")
|
||||||
await MainActor.run {
|
await MainActor.run {
|
||||||
if permissionGranted {
|
if permissionGranted {
|
||||||
self.delegate?.registerForRemoteNotifications()
|
self.delegate?.registerForRemoteNotifications()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[NotificationManager] request authorization failed: \(error)")
|
MXLog.error("Request authorization failed: \(error)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -101,7 +101,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func registrationFailed(with error: Error) {
|
func registrationFailed(with error: Error) {
|
||||||
MXLog.error("[NotificationManager] device token registration failed with error: \(error)")
|
MXLog.error("Device token registration failed with error: \(error)")
|
||||||
}
|
}
|
||||||
|
|
||||||
func showLocalNotification(with title: String, subtitle: String?) async {
|
func showLocalNotification(with title: String, subtitle: String?) async {
|
||||||
@@ -115,9 +115,9 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
trigger: nil)
|
trigger: nil)
|
||||||
do {
|
do {
|
||||||
try await notificationCenter.add(request)
|
try await notificationCenter.add(request)
|
||||||
MXLog.info("[NotificationManager] show local notification succeeded")
|
MXLog.info("Show local notification succeeded")
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[NotificationManager] show local notification failed: \(error)")
|
MXLog.error("Show local notification failed: \(error)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,10 +168,10 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
profileTag: pusherProfileTag(),
|
profileTag: pusherProfileTag(),
|
||||||
lang: Bundle.app.preferredLocalizations.first ?? "en")
|
lang: Bundle.app.preferredLocalizations.first ?? "en")
|
||||||
try await clientProxy.setPusher(with: configuration)
|
try await clientProxy.setPusher(with: configuration)
|
||||||
MXLog.info("[NotificationManager] set pusher succeeded")
|
MXLog.info("Set pusher succeeded")
|
||||||
return true
|
return true
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[NotificationManager] set pusher failed: \(error)")
|
MXLog.error("Set pusher failed: \(error)")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,7 +193,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
|||||||
private func enableNotifications(_ enable: Bool) {
|
private func enableNotifications(_ enable: Bool) {
|
||||||
guard notificationsEnabled != enable else { return }
|
guard notificationsEnabled != enable else { return }
|
||||||
notificationsEnabled = enable
|
notificationsEnabled = enable
|
||||||
MXLog.info("[NotificationManager] app setting 'enableNotifications' changed to '\(enable)'")
|
MXLog.info("App setting 'enableNotifications' changed to '\(enable)'")
|
||||||
if enable {
|
if enable {
|
||||||
requestAuthorization()
|
requestAuthorization()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
membersSubject.value = members.map(RoomMemberProxy.init)
|
membersSubject.value = members.map(RoomMemberProxy.init)
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[RoomProxy] Failed updating members using no sync API: \(error)")
|
MXLog.error("Failed updating members using no sync API: \(error)")
|
||||||
}
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
@@ -323,7 +323,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
membersSubject.value = members.map(RoomMemberProxy.init)
|
membersSubject.value = members.map(RoomMemberProxy.init)
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
MXLog.error("[RoomProxy] Failed updating members using sync API: \(error)")
|
MXLog.error("Failed updating members using sync API: \(error)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user