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