Skip to content

Commit

Permalink
chore: log [issues] with tracing-subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Dec 23, 2021
1 parent afcaa40 commit 6b72b7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions issues/86/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ publish = false
[dependencies]
sea-orm = { path = "../../", features = [ "sqlx-all", "runtime-tokio-native-tls", "debug-print" ] }
tokio = { version = "1", features = ["full"] }
env_logger = { version = "^0.9" }
log = { version = "^0.4" }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing = { version = "0.1" }
6 changes: 3 additions & 3 deletions issues/86/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use sea_orm::*;

#[tokio::main]
pub async fn main() {
env_logger::builder()
.filter_level(log::LevelFilter::Debug)
.is_test(true)
tracing_subscriber::fmt()
.with_max_level(tracing::Level::DEBUG)
.with_test_writer()
.init();

let db = Database::connect("mysql://sea:sea@localhost/bakery")
Expand Down

0 comments on commit 6b72b7f

Please sign in to comment.