🐛 tracing_forest crate isn't used for wasm
This commit is contained in:
@@ -13,7 +13,6 @@ use std::rc::Rc;
|
|||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use futures_util::stream::StreamExt;
|
use futures_util::stream::StreamExt;
|
||||||
use tracing::{debug, error, warn};
|
use tracing::{debug, error, warn};
|
||||||
use tracing_forest::ForestLayer;
|
|
||||||
use tracing_subscriber::{prelude::*, EnvFilter};
|
use tracing_subscriber::{prelude::*, EnvFilter};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
@@ -29,10 +28,12 @@ cfg_if! {
|
|||||||
if #[cfg(target_family = "wasm")] {
|
if #[cfg(target_family = "wasm")] {
|
||||||
use tracing_web::MakeWebConsoleWriter;
|
use tracing_web::MakeWebConsoleWriter;
|
||||||
} else {
|
} else {
|
||||||
use dioxus::desktop::Config;
|
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
||||||
|
use dioxus::desktop::Config;
|
||||||
use time::format_description::well_known::Iso8601;
|
use time::format_description::well_known::Iso8601;
|
||||||
use tracing_subscriber::fmt::time::UtcTime;
|
use tracing_subscriber::fmt::time::UtcTime;
|
||||||
|
use tracing_forest::ForestLayer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user