Skip to content

Commit 3e16d22

Browse files
david-allisonlukstbit
authored andcommitted
privacy: do not log rollover alarm time
I'd rather not log user timezones, or information which could imply them Only appears in crash reports.
1 parent f3d812a commit 3e16d22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AnkiDroid/src/main/java/com/ichi2/widget/DayRolloverAlarm.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ private fun AlarmManager.setWindowSafe(
134134
) = try {
135135
setWindow(type, windowStartMillis, windowLengthMillis, operation)
136136
val delta = (windowStartMillis - TimeManager.time.intTimeMS()).milliseconds
137-
Timber.i("scheduled day rollover alarm at %s (in %s)", Date(windowStartMillis), delta)
137+
Timber.i("scheduled day rollover")
138+
Timber.d("rollover alarm scheduled for %s (in %s)", Date(windowStartMillis), delta)
138139
} catch (e: SecurityException) {
139140
// #6332 - Too Many Alarms on Samsung Devices
140141
Timber.w(e, "too many alarms — could not schedule alarm")

0 commit comments

Comments
 (0)