Bump sea-orm version and enable logging

This commit is contained in:
Nobody 2022-03-29 23:28:42 +05:00
parent 1ad54e0a49
commit 06c10924d9
3 changed files with 11 additions and 2 deletions

View File

@ -25,11 +25,13 @@ pretty_env_logger = "0.4"
num-traits = "0.2" num-traits = "0.2"
num-derive = "0.3" num-derive = "0.3"
pretty-hex = "0.2" 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" hostname = "0.3"
#local-ip-address = "0.4" #local-ip-address = "0.4"
chrono = "0.4" chrono = "0.4"
rand = "0.8" rand = "0.8"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
openssl = { version = "0.10", features = ["vendored"] } openssl = { version = "0.10", features = ["vendored"] }

View File

View File

@ -1,5 +1,7 @@
extern crate pretty_env_logger; extern crate pretty_env_logger;
extern crate tracing_subscriber;
#[macro_use] #[macro_use]
extern crate num_derive; extern crate num_derive;
@ -21,7 +23,12 @@ use luamanager::LuaManager;
use subsystems::EntitySubsystem; use subsystems::EntitySubsystem;
fn main() { 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(|| { thread::spawn(|| {
//let mut ds = DispatchServer::new("127.0.0.1", 9696); //let mut ds = DispatchServer::new("127.0.0.1", 9696);