Skip to content

Commit

Permalink
removed "error" part in code variable names, since it is not only for…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
e-kononenko committed Nov 11, 2024
1 parent e84458e commit 5c11367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Auth/Model/AuthLoggable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -82,7 +82,7 @@ extension AuthLoggable {
return [:]
}

metadata[Self.metadataErrorCodeKey] = .string(errorCode)
metadata[Self.metadataCodeKey] = .string(eventCode)

return metadata
}
Expand All @@ -100,7 +100,7 @@ extension AuthLoggable {
"Auth"
}

private var errorCode: String {
private var eventCode: String {
let intCode = switch self {
case .initializeDeviceLoginNetworkError:
1
Expand Down

0 comments on commit 5c11367

Please sign in to comment.