structured log

This commit is contained in:
Luna Yao committed 2026-04-06 11:55:25 +02:00
1 parent 8610234ee2
commit 9e8a4c94cb
2 files changed
+8 -8

No files matched your search

+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();
}