mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-25 21:04:02 +02:00
fix: Debug logging level does not persist to disk
This commit is contained in:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user