Skip to content

Commit

Permalink
feat: add timezone and SDK version to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-ossai-cko committed Feb 9, 2024
1 parent 3985f05 commit ea50d8c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/Core/LoggerService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ extension LoggerServiceProtocol {
"FramesMode": AnyCodable(internalConfig.framesMode),
"MaskedPublicKey": AnyCodable(maskedPublicKey),
"ddTags": AnyCodable(ddTags),
"RiskSDKVersion": AnyCodable(Constants.version),
"Timezone": AnyCodable(TimeZone.current.identifier),
"RequestId": AnyCodable(requestId),
"DeviceSessionId": AnyCodable(deviceSessionId),
"RequestId": AnyCodable(requestId)
]
case .publishFailure, .loadFailure, .publishDisabled:
properties = [
"EventType": AnyCodable(riskEvent.rawValue),
"FramesMode": AnyCodable(internalConfig.framesMode),
"MaskedPublicKey": AnyCodable(maskedPublicKey),
"ddTags": AnyCodable(ddTags),
"RiskSDKVersion": AnyCodable(Constants.version),
"Timezone": AnyCodable(TimeZone.current.identifier),
"ErrorMessage": AnyCodable(error?.message),
"ErrorType": AnyCodable(error?.type),
"ErrorReason": AnyCodable(error?.reason)
"ErrorReason": AnyCodable(error?.reason),
]
}

Expand Down

0 comments on commit ea50d8c

Please sign in to comment.