fix: made sure that all errors and traces are in a single line

This commit is contained in:
Bram Dingelstad 2025-02-20 16:29:22 +01:00
parent e173d0ef67
commit 16fd39e8c0

View file

@ -327,7 +327,7 @@ impl Databases {
.expect("to parse JSON for start_cursor");
}
log::trace!("Querying database with request: {request:#?} and body: {json:#?}");
log::trace!("Querying database with request: {request:?} and body: {json:?}");
let mut response = (self.request_handler)(request).await?;
@ -360,8 +360,6 @@ mod tests {
start_cursor: None,
})
.await;
println!("{databases:#?}");
}
#[async_std::test]
@ -375,8 +373,6 @@ mod tests {
block_id: "0d253ab0f751443aafb9bcec14012897",
})
.await;
println!("{blocks:#?}")
}
}
@ -926,7 +922,7 @@ where
serde_json::from_value::<DatabaseProperty>(value.to_owned()).unwrap_or_else(|error| {
log::warn!(
"Could not parse value because of error, defaulting to DatabaseProperty::Unsupported:\n= ERROR:\n{error:#?}\n= JSON:\n{:#?}\n---",
"Could not parse value because of error, defaulting to DatabaseProperty::Unsupported:\n= ERROR:\n{error:?}\n= JSON:\n{:?}\n---",
serde_json::to_string_pretty(&value).expect("to pretty print the database property error")
);
DatabaseProperty::Unsupported(value.to_owned())