Rename sanity check fields avoid conflict with outer span

This commit is contained in:
Damien Elmes 2023-06-26 15:04:13 +10:00
parent cf39455487
commit 21a03265a2
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ impl NormalSyncer<'_> {
},
} = &e
{
debug!(?client, ?server, "sanity check failed");
debug!(client_counts=?client, server_counts=?server, "sanity check failed");
self.col.set_schema_modified()?;
}

View file

@ -89,7 +89,7 @@ pub fn server_sanity_check(
let mut server = match col.storage.sanity_check_info() {
Ok(info) => info,
Err(err) => {
info!(?client, ?err, "sanity check failed");
info!(client_counts=?client, ?err, "sanity check failed");
return Ok(SanityCheckResponse {
status: SanityCheckStatus::Bad,
client: Some(client),
@ -108,7 +108,7 @@ pub fn server_sanity_check(
status: if client == server {
SanityCheckStatus::Ok
} else {
info!(?client, ?server, "sanity check failed");
info!(client_counts=?client, server_counts=?server, "sanity check failed");
SanityCheckStatus::Bad
},
client: Some(client),