Skip to content

Commit

Permalink
Update logInformation() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Goel committed Sep 16, 2024
1 parent 2d679bb commit 05b78a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/TorusUtils/Helpers/NodeUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ internal class NodeUtils {
isUpgraded = metadataNonce == BigInt(0)
}

SentryUtils.logInformation(clientId: TorusUtils.getClientId(), finalEvmAddress: finalEvmAddress, finalPrivKey: finalPrivKey, platform: "torus-utils-swift")
SentryUtils.logInformation(clientId: TorusUtils.getClientId(), finalEvmAddress: finalEvmAddress, platform: "torus-utils-swift")

return TorusKey(
finalKeyData: TorusKey.FinalKeyData(
Expand Down
3 changes: 1 addition & 2 deletions Sources/TorusUtils/analytics/SentryUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ class SentryUtils {
}

// Static method to log information by setting tags
static func logInformation(clientId: String, finalEvmAddress: String, finalPrivKey: String, platform: String) {
static func logInformation(clientId: String, finalEvmAddress: String, platform: String) {
SentrySDK.configureScope { scope in
scope.setTag(value: clientId, key: "clientId")
scope.setTag(value: finalEvmAddress, key: "finalEvmAddress")
scope.setTag(value: finalPrivKey, key: "finalPrivKey")
scope.setTag(value: platform, key: "platform")
}
}
Expand Down

0 comments on commit 05b78a0

Please sign in to comment.