Skip to content

Commit 0c84144

Browse files
committed
Add a log when deleting a file.
1 parent 58a0875 commit 0c84144

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/mediaupload/impl/src/main/kotlin/io/element/android/libraries/mediaupload/impl/AndroidMediaPreProcessor.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import kotlinx.coroutines.flow.filterIsInstance
3636
import kotlinx.coroutines.flow.first
3737
import kotlinx.coroutines.flow.onEach
3838
import kotlinx.coroutines.withContext
39+
import timber.log.Timber
3940
import java.io.File
4041
import java.io.InputStream
4142
import javax.inject.Inject
@@ -82,6 +83,7 @@ class AndroidMediaPreProcessor @Inject constructor(
8283
}
8384
if (deleteOriginal) {
8485
tryOrNull {
86+
Timber.w("Deleting original uri $uri")
8587
contentResolver.delete(uri, null, null)
8688
}
8789
}

0 commit comments

Comments
 (0)