chnaged the log's api

This commit is contained in:
asxalex 2024-03-01 15:38:16 +08:00
parent 771bfc83cb
commit 9ba68c9c39
2 changed files with 2 additions and 1 deletions

View File

@ -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"] }

View File

@ -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)
}