structured log

This commit is contained in:
Luna Yao
2026-04-06 04:02:21 +02:00
parent 8610234ee2
commit 9e8a4c94cb
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -159,8 +159,8 @@ impl DnsNode {
}
_ = &mut sleep => {
if let Err(e) = self.heartbeat(&mut rpc, &mut heartbeat).await {
tracing::error!("heartbeat failed: {:?}", e);
if let Err(error) = self.heartbeat(&mut rpc, &mut heartbeat).await {
tracing::error!(?error, "heartbeat failed");
self.elect.notify_one();
}