From 5c113676d76adb9858336180d61c24ff69707ce8 Mon Sep 17 00:00:00 2001 From: Evgenii Kononenko Date: Mon, 11 Nov 2024 17:13:04 +0100 Subject: [PATCH] removed "error" part in code variable names, since it is not only for errors --- Sources/Auth/Model/AuthLoggable.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Auth/Model/AuthLoggable.swift b/Sources/Auth/Model/AuthLoggable.swift index f5ff8827..8b48baee 100644 --- a/Sources/Auth/Model/AuthLoggable.swift +++ b/Sources/Auth/Model/AuthLoggable.swift @@ -26,7 +26,7 @@ extension AuthLoggable { static var enableLogging: Bool = false private static let metadataErrorKey = "error" private static let metadataReasonKey = "reason" - private static let metadataErrorCodeKey = "code" + private static let metadataCodeKey = "code" private static let metadataPreviousSubstatusKey = "previous_substatus" var loggingMessage: Logger.Message { @@ -82,7 +82,7 @@ extension AuthLoggable { return [:] } - metadata[Self.metadataErrorCodeKey] = .string(errorCode) + metadata[Self.metadataCodeKey] = .string(eventCode) return metadata } @@ -100,7 +100,7 @@ extension AuthLoggable { "Auth" } - private var errorCode: String { + private var eventCode: String { let intCode = switch self { case .initializeDeviceLoginNetworkError: 1