refactor: Clean up logging issues
Primary issues: Double escapes (debug fmt), spans without levels
This commit is contained in:
parent
27d6604d14
commit
aed15f246a
65 changed files with 197 additions and 193 deletions
|
|
@ -128,7 +128,7 @@ Keep in mind the frequency that the log will be reached, and the relevancy to a
|
|||
```rs
|
||||
// Good
|
||||
error!(
|
||||
error = %err,
|
||||
error = ?err,
|
||||
room_id = %room_id,
|
||||
"Failed to send event to room"
|
||||
);
|
||||
|
|
@ -264,7 +264,7 @@ pub async fn send_federation_request(
|
|||
warn!(
|
||||
destination = %destination,
|
||||
attempt = attempt,
|
||||
error = %err,
|
||||
error = ?err,
|
||||
retry_delay_ms = retry_delay.as_millis(),
|
||||
"Federation request failed, retrying"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue