slightly edit log output
This commit is contained in:
parent
dd8047f6fd
commit
b650083bcb
@ -11,3 +11,4 @@ game = { version = "0.1", path = "../game"}
|
|||||||
tracing-subscriber = "0.2"
|
tracing-subscriber = "0.2"
|
||||||
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
|
||||||
sentry = "0.23"
|
sentry = "0.23"
|
||||||
|
tracing = "0.1"
|
||||||
|
@ -1,15 +1,21 @@
|
|||||||
use game::{GameConfig, StaticGameData, game_begin};
|
use game::{game_begin, GameConfig, StaticGameData};
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
// Enable logging
|
// Enable logging
|
||||||
tracing_subscriber::fmt::init();
|
tracing_subscriber::fmt()
|
||||||
|
.compact()
|
||||||
|
.with_thread_names(true)
|
||||||
|
.with_ansi(true)
|
||||||
|
.with_max_level(tracing::Level::INFO)
|
||||||
|
.init();
|
||||||
|
|
||||||
// Load the general config for the game
|
// Load the general config for the game
|
||||||
// This happens here so we can properly track sentry events
|
// This happens here so we can properly track sentry events
|
||||||
let game_config = GameConfig::load(
|
let game_config = GameConfig::load(
|
||||||
StaticGameData::get("configs/application.json").expect("Failed to load application.json"),
|
StaticGameData::get("configs/application.json").expect("Failed to load application.json"),
|
||||||
).unwrap();
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
// Connect to sentry
|
// Connect to sentry
|
||||||
let _sentry_guard = sentry::init((
|
let _sentry_guard = sentry::init((
|
||||||
|
Reference in New Issue
Block a user