fix: Debug logging level does not persist to disk

This commit is contained in:
ronaldheft
2022-09-08 20:09:35 -04:00
parent cc4c9787c0
commit f8836be147
3 changed files with 30 additions and 34 deletions
+2 -6
View File
@@ -52,16 +52,12 @@ public extension AppLogger {
func log(_ information: String, isPrivate: Bool = Defaults.isPrivate) {
if isPrivate {
logger.debug("\(information, privacy: .private)")
logger.log("\(information, privacy: .private)")
} else {
logger.debug("\(information, privacy: .public)")
logger.log("\(information, privacy: .public)")
}
}
func debug(_ information: String, isPrivate: Bool = Defaults.isPrivate) {
self.log(information, isPrivate: isPrivate)
}
func error(_ information: String, isPrivate: Bool = Defaults.isPrivate) {
if isPrivate {
logger.error("\(information, privacy: .private)")