From 0b2d2ec3c2634a3e5fc1c5d17e1aea3b3d802a91 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 17 Nov 2021 09:34:07 +1100 Subject: [PATCH] Prefer tracing fields of stringified log message --- daemon/src/maker_inc_connections.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/maker_inc_connections.rs b/daemon/src/maker_inc_connections.rs index 9ab2500..f710f68 100644 --- a/daemon/src/maker_inc_connections.rs +++ b/daemon/src/maker_inc_connections.rs @@ -119,7 +119,7 @@ impl Actor { ) -> Result<()> { let taker_id = TakerId::default(); - tracing::info!("New taker {} connected on {}", taker_id, taker_address); + tracing::info!(%taker_id, address = %taker_address, "New taker connected"); let noise = Arc::new(Mutex::new( noise::responder_handshake(&mut stream, &self.noise_priv_key).await?,