Add a log when deleting a file.

This commit is contained in:
Benoit Marty 2024-11-06 11:59:33 +01:00
parent 58a0875c5d
commit 0c841442d9

View file

@ -36,6 +36,7 @@ import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.withContext
import timber.log.Timber
import java.io.File
import java.io.InputStream
import javax.inject.Inject
@ -82,6 +83,7 @@ class AndroidMediaPreProcessor @Inject constructor(
}
if (deleteOriginal) {
tryOrNull {
Timber.w("Deleting original uri $uri")
contentResolver.delete(uri, null, null)
}
}