Skip to content

Commit

Permalink
reduce loglevel when reporting errors while fetching the readme for a…
Browse files Browse the repository at this point in the history
… crate
  • Loading branch information
syphar committed Sep 6, 2023
1 parent c3c3059 commit 3ed793e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/crate_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use axum::{
response::{IntoResponse, Response as AxumResponse},
};
use chrono::{DateTime, Utc};
use log::warn;
use postgres::GenericClient;
use serde::Deserialize;
use serde::{ser::Serializer, Serialize};
Expand Down Expand Up @@ -410,7 +411,7 @@ pub(crate) async fn crate_details_handler(

match details.fetch_readme(&storage) {
Ok(readme) => details.readme = readme.or(details.readme),
Err(e) => report_error(&e),
Err(e) => warn!("error fetching readme: {:?}", &e),
}

Ok(details)
Expand Down

0 comments on commit 3ed793e

Please sign in to comment.