Skip to content

Commit

Permalink
Improve how assertions are tracked in Tracks (#23211)
Browse files Browse the repository at this point in the history
  • Loading branch information
kean authored May 16, 2024
2 parents 87726b7 + 7697b11 commit 1268953
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions WordPress/Classes/Utility/WPInstrumentation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ func wpAssert(_ closure: @autoclosure () -> Bool, _ message: StaticString = "–

WPAnalytics.track(.assertionFailure, properties: {
var properties: [String: Any] = [
"file": filename,
"line": line,
"message": "\(filename)\(line): \(message)"
"assertion": "\(filename)\(line): \(message)"
]
for (key, value) in userInfo ?? [:] {
properties[key] = value
Expand Down

0 comments on commit 1268953

Please sign in to comment.