From 5cc7782d4ed719d1f352ab163ef26c41a939caaf Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Mon, 5 Sep 2022 19:28:44 +0200 Subject: [PATCH] Log token info --- Sources/App/TokenStorage.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/App/TokenStorage.swift b/Sources/App/TokenStorage.swift index ae81ab7..75aa2f3 100644 --- a/Sources/App/TokenStorage.swift +++ b/Sources/App/TokenStorage.swift @@ -18,11 +18,13 @@ struct TokenStorage { private mutating func loadTokensFromDisk() { guard FileManager.default.fileExists(atPath: fileUrl.path) else { + log(info: "No tokens loaded") return } do { let data = try Data(contentsOf: fileUrl) tokens = try BinaryDecoder().decode(from: data) + log(info: "\(tokens.count) tokens loaded") } catch { log(error: "Failed to read token file: \(error)") }