♻️ Replace tracing dependency with dioxus-logger

tracing package doesn't support web platform when dioxus-logger `will eventually support every target that Dioxus
does. Currently only web and desktop platforms are supported.`
This commit is contained in:
2024-04-06 11:51:46 +02:00
parent f78765e553
commit 0ec1187fc3
15 changed files with 16 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ use std::time::Duration;
use async_std::task;
use dioxus::prelude::*;
use tokio::time::{sleep, Duration};
use tracing::{debug, Level};
use log::{debug, LevelFilter};
use crate::base::{login, sync_rooms};
use crate::base::{APP_SETTINGS, ROOMS, SESSION};
@@ -111,10 +111,7 @@ fn app() -> Element {
}
fn main() {
tracing_subscriber::fmt()
// .pretty()
.with_max_level(Level::DEBUG)
.init();
launch(app);
dioxus_logger::init(LevelFilter::Info).expect("failed to init logger");
}