properly init tracing-subscriber

This commit is contained in:
snow flurry 2024-08-14 22:18:13 -07:00
parent 8e9478ebc6
commit d10d98de96
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ async fn handle_message(ctx: &Context, from: SocketAddr, msg: &Message) {
#[tokio::main]
async fn main() -> ExitCode {
tracing_subscriber::fmt().init();
tracing_subscriber::fmt::init();
let cfg: Config = match Config::figment().extract() {
Ok(cfg) => cfg,
Err(err) => {

View file

@ -90,7 +90,7 @@ async fn get_user_data(
#[tokio::main]
async fn main() -> ExitCode {
tracing_subscriber::fmt().init();
tracing_subscriber::fmt::init();
let cfg: Config = match Config::figment().extract() {
Ok(cfg) => cfg,
Err(err) => {