1
Fork 0
mirror of https://github.com/Steffo99/twom.git synced 2024-10-16 06:27:32 +00:00

Make cancellations a debug message instead of info

This commit is contained in:
Steffo 2024-01-31 03:54:13 +01:00
parent 8812e41a74
commit c1b84d14f4
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ fun avatarUrlFromUserId(userId: String): String? {
try {
url = session.profileService().getAvatarUrl(userId).getOrNull()
} catch (e: CancellationException) {
Log.i(TAG, "Cancelled retrieval of avatar URL of: $userId", e)
Log.d(TAG, "Cancelled retrieval of avatar URL of: $userId", e)
url = null
return@Fetch
} catch (e: Throwable) {

View file

@ -58,7 +58,7 @@ fun bitmapFromMatrixFile(url: String? = null): Bitmap? {
)
} catch (e: CancellationException) {
// This makes sure no corrupt image is displayed, at least
Log.i(TAG, "Cancelled download of file at: $url", e)
Log.d(TAG, "Cancelled download of file at: $url", e)
bitmap = null
return@Fetch
} catch (e: Throwable) {