Skip to content

Commit

Permalink
Merge pull request #20 from checkout/no-jira-add-timezone-and-sdk-ver…
Browse files Browse the repository at this point in the history
…sion-to-logs

no-jira - Add timezone and SDK version to logs
  • Loading branch information
precious-ossai-cko authored Feb 12, 2024
2 parents 3985f05 + 962e736 commit ac2bbb8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/partial-readmes/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ platform :ios, '12.0'
use_frameworks!

target '<Your Target Name>' do
pod 'Risk', '~> 1.0.1'
pod 'Risk', '~> 1.0.2'
end
```

Expand Down
2 changes: 1 addition & 1 deletion Risk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Risk"
s.version = "1.0.1"
s.version = "1.0.2"
s.summary = "Checkout Risk package in Swift"
s.description = <<-DESC
Checkout Risk package in Swift.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Core/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

enum Constants {
static let productName = "risk-ios-sdk"
static let version = "1.0.1"
static let version = "1.0.2"
static let userAgent = "checkout-sdk-risk-ios/\(version)"
static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk"
}
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 ac2bbb8

Please sign in to comment.