mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
feat: Make url preview logs more informative
This commit is contained in:
1 parent
53c3d0484f
commit
8808342331
1 file changed
+2
@@ -224,6 +224,8 @@ pub(crate) async fn get_media_preview_route(
|
||||
.media
|
||||
.get_url_preview(&url)
|
||||
.await
|
||||
.inspect(|_| info!(user=%sender_user, "Finished fetching a URL preview for {url}"))
|
||||
.inspect_err(|e| info!(user=%sender_user, "Failed to fetch a URL preview for {url}: {e}"))
|
||||
.map_err(|error| {
|
||||
err!(Request(Unknown(
|
||||
debug_error!(%sender_user, %url, "Failed to fetch URL preview: {error}")
|
||||
|
||||
Reference in new issue
Block a user