From 06c10924d9207f2165ba92ab2f138b50e36a59b1 Mon Sep 17 00:00:00 2001 From: Nobody Date: Tue, 29 Mar 2022 23:28:42 +0500 Subject: [PATCH] Bump sea-orm version and enable logging --- Cargo.toml | 4 +++- src/jsonmanager/material.rs | 0 src/main.rs | 9 ++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/jsonmanager/material.rs diff --git a/Cargo.toml b/Cargo.toml index c3a42b7..2197ac1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,11 +25,13 @@ pretty_env_logger = "0.4" num-traits = "0.2" num-derive = "0.3" pretty-hex = "0.2" -sea-orm = { version = "0.7", features = [ "sqlx-all", "runtime-async-std-native-tls" ] } +sea-orm = { version = "0.7", features = [ "sqlx-all", "runtime-async-std-native-tls", "debug-print" ] } hostname = "0.3" #local-ip-address = "0.4" chrono = "0.4" rand = "0.8" +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } [target.'cfg(windows)'.dependencies] openssl = { version = "0.10", features = ["vendored"] } diff --git a/src/jsonmanager/material.rs b/src/jsonmanager/material.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/main.rs b/src/main.rs index 29cb013..b734a51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ extern crate pretty_env_logger; +extern crate tracing_subscriber; + #[macro_use] extern crate num_derive; @@ -21,7 +23,12 @@ use luamanager::LuaManager; use subsystems::EntitySubsystem; fn main() { - pretty_env_logger::init(); + //pretty_env_logger::init(); + + tracing_subscriber::fmt() + .with_max_level(tracing::Level::DEBUG) + .with_test_writer() + .init(); thread::spawn(|| { //let mut ds = DispatchServer::new("127.0.0.1", 9696);