From 3f6da7c65ead5386e9654051a4979352b5dcd1f8 Mon Sep 17 00:00:00 2001 From: asxalex Date: Thu, 6 Feb 2025 10:16:37 +0800 Subject: [PATCH] changed back to log --- Cargo.lock | 15 +-------------- Cargo.toml | 2 +- src/bin/sdlan/main.rs | 18 +++++++++--------- 3 files changed, 11 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1b6cc3d..9eb5645 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1374,18 +1374,6 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" -[[package]] -name = "rolling-file" -version = "0.1.0" -dependencies = [ - "anyhow", - "chrono", - "time", - "tracing", - "tracing-appender", - "tracing-subscriber", -] - [[package]] name = "rolling-file" version = "0.1.0" @@ -1466,7 +1454,6 @@ dependencies = [ "prost", "prost-build", "rand", - "rolling-file 0.1.0", "rsa", "sdlan-sn-rs", "structopt", @@ -1489,7 +1476,7 @@ dependencies = [ "once_cell", "prost", "rand", - "rolling-file 0.1.0 (git+ssh://git@git.asxalex.pw/rust/rolling-file.git)", + "rolling-file", "rsa", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index b5aac34..dfe3d7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ structopt = "0.3.26" tokio = { version = "1.38.0", features = ["full"] } tokio-util = "0.7.11" tracing = "0.1.40" -rolling-file = { path = "../rolling-file" } +# rolling-file = { path = "../rolling-file" } [target.'cfg(windows)'.dependencies] wintun = "0.4.0" diff --git a/src/bin/sdlan/main.rs b/src/bin/sdlan/main.rs index 15fd805..053a637 100644 --- a/src/bin/sdlan/main.rs +++ b/src/bin/sdlan/main.rs @@ -11,15 +11,15 @@ use structopt::StructOpt; #[tokio::main] async fn main() { - let _guard = rolling_file::new_log( - "./.output", - 7, - rolling_file::PeriodGap::Daily, - tracing::Level::DEBUG, - true, - true, - ); - // let _guard = log::init_log(); + // let _guard = rolling_file::new_log( + // "./.output", + // 7, + // rolling_file::PeriodGap::Daily, + // tracing::Level::DEBUG, + // true, + // true, + // ); + let _guard = log::init_log(); let cmd = CommandLineInput::from_args();