Initialize tracing subscriber

This commit is contained in:
Kitaiti Makoto 2021-01-11 09:15:34 +09:00
parent 4a4534d6f3
commit b9b9af6c44

View file

@ -28,6 +28,7 @@ use std::process::exit;
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
use std::time::Duration; use std::time::Duration;
use tracing::warn; use tracing::warn;
use tracing_subscriber;
init_i18n!( init_i18n!(
"plume", af, ar, bg, ca, cs, cy, da, de, el, en, eo, es, fa, fi, fr, gl, he, hi, hr, hu, it, "plume", af, ar, bg, ca, cs, cy, da, de, el, en, eo, es, fa, fi, fr, gl, he, hi, hr, hu, it,
@ -69,6 +70,7 @@ fn main() {
Err(ref e) if e.not_found() => eprintln!("no .env was found"), Err(ref e) if e.not_found() => eprintln!("no .env was found"),
e => e.map(|_| ()).unwrap(), e => e.map(|_| ()).unwrap(),
} }
tracing_subscriber::fmt::init();
App::new("Plume") App::new("Plume")
.bin_name("plume") .bin_name("plume")