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

View File

@@ -64,11 +64,9 @@ class TemplateUserProfileService: TemplateUserProfileServiceProtocol {
else { return }
self.presenceSubject.send(TemplateUserProfilePresence(mxPresence: self.session.myUser.presence))
}
// TODO: Add log back when abstract logger added to RiotSwiftUI
// if reference == nil {
//
// MXLog.error("[TemplateUserProfileService] Did not recieve a lisenter reference.")
// }
if reference == nil {
UILog.error("[TemplateUserProfileService] Did not recieve a lisenter reference.")
}
return reference
}
}