diff --git a/Sources/Site/Music/AtlasCache.swift b/Sources/Site/Music/AtlasCache.swift index ffa6fdf2..bd0bbf68 100644 --- a/Sources/Site/Music/AtlasCache.swift +++ b/Sources/Site/Music/AtlasCache.swift @@ -23,7 +23,7 @@ actor AtlasCache { private var staggerOffset = 0.0 private var cache: [T: Value] = [:] - + private let atlasCache = Logger(category: "atlasCache") internal init(fileName: String = "atlas.json") { diff --git a/Sources/Site/Music/Vault+URL.swift b/Sources/Site/Music/Vault+URL.swift index cf0b2909..3ce894de 100644 --- a/Sources/Site/Music/Vault+URL.swift +++ b/Sources/Site/Music/Vault+URL.swift @@ -8,10 +8,6 @@ import Foundation import os -extension Logger { - static let vault = Logger(category: "vault") -} - enum VaultError: Error { case illegalURL(String) } @@ -33,9 +29,10 @@ extension Vault { } public static func load(url: URL, artistsWithShowsOnly: Bool = true) async throws -> Vault { - Logger.vault.log("start") + let vault = Logger(category: "vault") + vault.log("start") defer { - Logger.vault.log("end") + vault.log("end") } let music = try await Music.load(url: url) return await Vault.create(music: artistsWithShowsOnly ? music.showsOnly : music, url: url)