From aa4bff263b1e7bba0f686af0ada3d2d3fdcea568 Mon Sep 17 00:00:00 2001 From: DamonXue Date: Sun, 2 Mar 2025 22:29:11 +0800 Subject: [PATCH] refactor: simplify logging statements in console.rs and main.rs --- rustfs/src/console.rs | 7 +------ rustfs/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/rustfs/src/console.rs b/rustfs/src/console.rs index c586a4615..81c109d03 100644 --- a/rustfs/src/console.rs +++ b/rustfs/src/console.rs @@ -162,12 +162,7 @@ pub async fn start_static_file_server(addrs: &str, local_ip: Ipv4Addr, access_ke let listener = tokio::net::TcpListener::bind(addrs).await.unwrap(); let local_addr = listener.local_addr().unwrap(); - info!( - "WebUI: http://{}:{} http://127.0.0.1:{}", - local_ip, - local_addr.port(), - local_addr.port() - ); + info!("WebUI: http://{}:{} http://127.0.0.1:{}", local_ip, local_addr.port(), local_addr.port()); info!(" RootUser: {}", access_key); info!(" RootPass: {}", secret_key); diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index 070cf4776..1d98c8e8e 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -40,7 +40,7 @@ use std::{io::IsTerminal, net::SocketAddr}; use tokio::net::TcpListener; use tonic::{metadata::MetadataValue, Request, Status}; use tower_http::cors::CorsLayer; -use tracing::{debug, error, info, warn, event, span}; +use tracing::{debug, error, event, info, span, warn}; use tracing_error::ErrorLayer; use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt, Layer};