mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 05:21:00 +00:00
Initialize tracing subscriber
This commit is contained in:
parent
4a4534d6f3
commit
b9b9af6c44
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue