Add configurable logger for RiotSwiftUI

This commit is contained in:
David Langley
2021-09-09 22:42:00 +01:00
parent c80dfcd1d0
commit 59a54654b1
9 changed files with 193 additions and 10 deletions
@@ -47,8 +47,7 @@ class AvatarViewModel: InjectableObject, ObservableObject {
avatarService.avatarImage(mxContentUri: mxContentUri, avatarSize: avatarSize)
.sink { completion in
guard case let .failure(error) = completion else { return }
// MXLog.error("[AvatarService] Failed to retrieve avatar: \(error)")
// TODO: Report non-fatal error when we have Sentry or similar.
UILog.error("[AvatarService] Failed to retrieve avatar: \(error)")
} receiveValue: { image in
self.viewState = .avatar(image)
}