Skip to content

Commit

Permalink
Tidy logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSasaPrsic committed Apr 9, 2024
1 parent c3d0cb1 commit 872616e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ async fn get_eth_head(State(state): State<Arc<AppState>>) -> impl IntoResponse {
)
}
Err(err) => {
tracing::error!("Cannot get timestamp storage: {:?}", err);
tracing::error!("Cannot get timestamp storage: {:?}", err);
(
StatusCode::INTERNAL_SERVER_ERROR,
[("Cache-Control", "max-age=300, must-revalidate")],
Expand All @@ -469,7 +469,7 @@ async fn get_eth_head(State(state): State<Arc<AppState>>) -> impl IntoResponse {
}
}
Err(err) => {
tracing::error!("Cannot get head storage: {:?}", err.to_string());
tracing::error!("Cannot get head storage: {:?}", err.to_string());
if err.to_string().ends_with("status code: 429") {
(
StatusCode::TOO_MANY_REQUESTS,
Expand Down Expand Up @@ -505,7 +505,7 @@ async fn get_avl_head(State(state): State<Arc<AppState>>) -> impl IntoResponse {
Json(json!(range_blocks)),
),
Err(err) => {
tracing::error!("Cannot parse range blocks: {:?}", err.to_string());
tracing::error!("Cannot parse range blocks: {:?}", err.to_string());
(
StatusCode::INTERNAL_SERVER_ERROR,
[("Cache-Control", "max-age=300, must-revalidate")],
Expand All @@ -515,7 +515,7 @@ async fn get_avl_head(State(state): State<Arc<AppState>>) -> impl IntoResponse {
}
}
Err(err) => {
tracing::error!("Cannot get avl head: {:?}", err.to_string());
tracing::error!("Cannot get avl head: {:?}", err.to_string());
(
StatusCode::INTERNAL_SERVER_ERROR,
[("Cache-Control", "max-age=300, must-revalidate")],
Expand Down

0 comments on commit 872616e

Please sign in to comment.