Downgrade warning log during backup creation.

This commit is contained in:
Greyson Parrelli
2025-10-23 14:02:02 -04:00
committed by jeffrey-signal
parent 123b88e032
commit a8e65619d9
2 changed files with 5 additions and 3 deletions

View File

@@ -3868,8 +3868,8 @@ class AttachmentTable(
}
}
data class CreateRemoteKeyResult(val totalCount: Int, val notQuoteOrSickerDupeNotFoundCount: Int, val notQuoteOrSickerDupeFoundCount: Int) {
val unexpectedKeyCreation = notQuoteOrSickerDupeFoundCount > 0 || notQuoteOrSickerDupeNotFoundCount > 0
data class CreateRemoteKeyResult(val totalCount: Int, val notQuoteOrStickerDupeNotFoundCount: Int, val notQuoteOrStickerDupeFoundCount: Int) {
val unexpectedKeyCreation = notQuoteOrStickerDupeFoundCount > 0 || notQuoteOrStickerDupeNotFoundCount > 0
}
class DebugArchiveMediaInfo(

View File

@@ -189,9 +189,11 @@ class BackupMessagesJob private constructor(
val createKeyResult = SignalDatabase.attachments.createRemoteKeyForAttachmentsThatNeedArchiveUpload()
if (createKeyResult.totalCount > 0) {
Log.w(TAG, "Needed to create remote keys. $createKeyResult", true)
if (createKeyResult.unexpectedKeyCreation) {
Log.w(TAG, "Unexpected remote key creation! $createKeyResult", true)
maybePostRemoteKeyMissingNotification()
} else {
Log.d(TAG, "Needed to create ${createKeyResult.totalCount} remote keys for quotes/stickers.")
}
}
stopwatch.split("keygen")