From 0f96aa44148c9e3ebd061371c22b92e044583ae6 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Tue, 3 Sep 2024 10:51:40 -0400 Subject: [PATCH] [Vertex AI] Make `Logger` properties constants --- FirebaseVertexAI/Sources/Logging.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FirebaseVertexAI/Sources/Logging.swift b/FirebaseVertexAI/Sources/Logging.swift index 037c7450dd9..5806ac2368a 100644 --- a/FirebaseVertexAI/Sources/Logging.swift +++ b/FirebaseVertexAI/Sources/Logging.swift @@ -38,10 +38,10 @@ struct Logging { /// The default logger that is visible for all users. Note: we shouldn't be using anything lower /// than `.notice`. - static var `default` = Logger(subsystem: subsystem, category: defaultCategory) + static let `default` = Logger(subsystem: subsystem, category: defaultCategory) /// A non default - static var network: Logger = { + static let network: Logger = { if additionalLoggingEnabled() { return Logger(subsystem: subsystem, category: "NetworkResponse") } else { @@ -51,7 +51,7 @@ struct Logging { }() /// - static var verbose: Logger = { + static let verbose: Logger = { if additionalLoggingEnabled() { return Logger(subsystem: subsystem, category: defaultCategory) } else {