Log with Timber.
This commit is contained in:
parent
4136ba94e5
commit
9bf7c1ccf8
3 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package io.element.android.x.designsystem.components.avatar
|
||||
|
||||
import android.util.Log
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.size
|
||||
|
|
@ -18,6 +17,7 @@ import androidx.compose.ui.unit.sp
|
|||
import coil.compose.AsyncImage
|
||||
import io.element.android.x.designsystem.AvatarGradientEnd
|
||||
import io.element.android.x.designsystem.AvatarGradientStart
|
||||
import timber.log.Timber
|
||||
|
||||
@Composable
|
||||
fun Avatar(avatarData: AvatarData, modifier: Modifier = Modifier) {
|
||||
|
|
@ -45,7 +45,7 @@ private fun ImageAvatar(
|
|||
AsyncImage(
|
||||
model = avatarData.model,
|
||||
onError = {
|
||||
Log.e("TAG", "Error $it\n${it.result}", it.result.throwable)
|
||||
Timber.e("TAG", "Error $it\n${it.result}", it.result.throwable)
|
||||
},
|
||||
contentDescription = null,
|
||||
contentScale = ContentScale.Crop,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue