Switch to tracing for the cli (#2137)
* switch to tracing in the dioxus-cli * bump manganis * fix manganis features * only print processing assets if skip assets is disabled * switch all logs to tracing * switch to published version of manganis * undo all changes to cargo.toml * remove reference to log
This commit is contained in:
1 parent
da3b066934
commit
2ac4bdb673
19 files changed
+365
-416
No files matched your search
@@ -11,10 +11,7 @@ use Commands::*;
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
let args = Cli::parse();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
env_logger::init();
|
||||
|
||||
// set_up_logging();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
match args.action {
|
||||
Translate(opts) => opts
|
||||
@@ -53,7 +50,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
let _dioxus_config = DioxusConfig::load(Some(bin.clone()))
|
||||
.context("Failed to load Dioxus config because")?
|
||||
.unwrap_or_else(|| {
|
||||
log::info!("You appear to be creating a Dioxus project from scratch; we will use the default config");
|
||||
tracing::info!("You appear to be creating a Dioxus project from scratch; we will use the default config");
|
||||
DioxusConfig::default()
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user