refactor: simplify logging statements in console.rs and main.rs

This commit is contained in:
DamonXue
2025-03-02 22:29:11 +08:00
parent c10d723c6d
commit aa4bff263b
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -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);
+1 -1
View File
@@ -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};