chnaged the log's api
This commit is contained in:
parent
771bfc83cb
commit
9ba68c9c39
@ -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"] }
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user