fix: made sure that all errors and traces are in a single line
This commit is contained in:
parent
e173d0ef67
commit
16fd39e8c0
1 changed files with 2 additions and 6 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue