♻️ 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:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user