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:
Doug
2025-08-26 16:21:10 +01:00
committed by GitHub
parent e4de85c7ba
commit b601baf539
7 changed files with 18 additions and 18 deletions
@@ -47,7 +47,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
notificationCenter.delegate = self
notificationsEnabled = appSettings.enableNotifications
MXLog.info("[NotificationManager] app setting 'enableNotifications' is '\(notificationsEnabled)'")
MXLog.info("App setting 'enableNotifications' is '\(notificationsEnabled)'")
// Listen for changes to AppSettings.enableNotifications
appSettings.$enableNotifications
@@ -62,14 +62,14 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
Task {
do {
let permissionGranted = try await notificationCenter.requestAuthorization(options: [.alert, .sound, .badge])
MXLog.info("[NotificationManager] permission granted: \(permissionGranted)")
MXLog.info("Permission granted: \(permissionGranted)")
await MainActor.run {
if permissionGranted {
self.delegate?.registerForRemoteNotifications()
}
}
} 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) {
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 {
@@ -115,9 +115,9 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
trigger: nil)
do {
try await notificationCenter.add(request)
MXLog.info("[NotificationManager] show local notification succeeded")
MXLog.info("Show local notification succeeded")
} 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(),
lang: Bundle.app.preferredLocalizations.first ?? "en")
try await clientProxy.setPusher(with: configuration)
MXLog.info("[NotificationManager] set pusher succeeded")
MXLog.info("Set pusher succeeded")
return true
} catch {
MXLog.error("[NotificationManager] set pusher failed: \(error)")
MXLog.error("Set pusher failed: \(error)")
return false
}
}
@@ -193,7 +193,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
private func enableNotifications(_ enable: Bool) {
guard notificationsEnabled != enable else { return }
notificationsEnabled = enable
MXLog.info("[NotificationManager] app setting 'enableNotifications' changed to '\(enable)'")
MXLog.info("App setting 'enableNotifications' changed to '\(enable)'")
if enable {
requestAuthorization()
} else {