From 9ba68c9c3939ea265f825d9bd24ad27cadf33039 Mon Sep 17 00:00:00 2001 From: asxalex Date: Fri, 1 Mar 2024 15:38:16 +0800 Subject: [PATCH] chnaged the log's api --- Cargo.toml | 1 + src/log.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6c3ffe5..f9acbed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ serde_repr = "0.1.18" sqlx = "0.7.3" #structopt = "0.3.26" tokio = { version = "1.36.0", features = ["full"] } +tracing = "0.1.40" #tracing = "0.1.40" tracing-appender = "0.2.3" uuid = { version = "1.7.0", features = ["v4"] } diff --git a/src/log.rs b/src/log.rs index 8ed9cb9..e50fe38 100644 --- a/src/log.rs +++ b/src/log.rs @@ -1,5 +1,5 @@ use tracing_appender::non_blocking::WorkerGuard; pub fn init_log() -> WorkerGuard { - rolling_file::default(true, true) + rolling_file::default(true, true, tracing::Level::DEBUG) }