From 808d593258903d79105aa2c26781dc70e8d73f8b Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Fri, 5 Apr 2024 15:32:00 +1300 Subject: [PATCH] Fix log target --- chorus-bin/src/main.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chorus-bin/src/main.rs b/chorus-bin/src/main.rs index 3b8f9e8..41fce80 100644 --- a/chorus-bin/src/main.rs +++ b/chorus-bin/src/main.rs @@ -200,14 +200,21 @@ async fn main() -> Result<(), Error> { let mut runtime: u64 = GLOBALS.start_time.elapsed().as_secs(); if runtime < 1 { runtime = 1; + } - log::info!("Runtime: {} seconds", runtime); + log::info!( + target: "Server", + "Runtime: {} seconds", runtime + ); + log::info!( + target: "Server", "Inbound: {} bytes ({} B/s)", GLOBALS.bytes_inbound.load(Ordering::Relaxed), (GLOBALS.bytes_inbound.load(Ordering::Relaxed) as f32) / (runtime as f32) ); log::info!( + target: "Server", "Outbound: {} bytes ({} B/s)", GLOBALS.bytes_outbound.load(Ordering::Relaxed), (GLOBALS.bytes_outbound.load(Ordering::Relaxed) as f32) / (runtime as f32)