mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-26 14:09:58 +00:00
Downgrade warning log during backup creation.
This commit is contained in:
committed by
jeffrey-signal
parent
123b88e032
commit
a8e65619d9
@@ -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(
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user