Skip to content

Commit

Permalink
Change pixel name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Dec 9, 2024
1 parent a5e1288 commit ca0f25c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ extension Pixel {

// MARK: debug pixels
case dbCrashDetected
case dbCrashDetectedDaily
case crashOnCrashHandlersSetUp

case dbMigrationError
Expand Down Expand Up @@ -1378,6 +1379,7 @@ extension Pixel.Event {
// MARK: debug pixels

case .dbCrashDetected: return "m_d_crash"
case .dbCrashDetectedDaily: return "m_d_crash_daily"
case .crashOnCrashHandlersSetUp: return "m_d_crash_on_handlers_setup"
case .dbMigrationError: return "m_d_dbme"
case .dbRemovalError: return "m_d_dbre"
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ import os.log
// If for some reason the parameter can't be found, fall back to the current version.
if let crashAppVersion = params[PixelParameters.appVersion] {
let dailyParameters = [PixelParameters.appVersion: crashAppVersion]
DailyPixel.fireDaily(.dbCrashDetected, withAdditionalParameters: dailyParameters)
DailyPixel.fireDaily(.dbCrashDetectedDaily, withAdditionalParameters: dailyParameters)
} else {
DailyPixel.fireDaily(.dbCrashDetected)
DailyPixel.fireDaily(.dbCrashDetectedDaily)
}
}

Expand Down

0 comments on commit ca0f25c

Please sign in to comment.