Browse Source

Convert warn to trace to silence warnings before launching in serve

Jonathan Kelley 7 months ago
parent
commit
d126466702
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/cli/src/settings.rs

+ 2 - 2
packages/cli/src/settings.rs

@@ -1,7 +1,7 @@
 use crate::{Result, TraceSrc};
 use serde::{Deserialize, Serialize};
 use std::{fs, path::PathBuf};
-use tracing::{debug, error, warn};
+use tracing::{error, warn, trace};
 
 const GLOBAL_SETTINGS_FILE_NAME: &str = "dioxus/settings.toml";
 
@@ -41,7 +41,7 @@ impl CliSettings {
         let path = path.join(GLOBAL_SETTINGS_FILE_NAME);
         let Some(data) = fs::read_to_string(path).ok() else {
             // We use a debug here because we expect the file to not exist.
-            debug!("failed to read `{}` config file", GLOBAL_SETTINGS_FILE_NAME);
+            trace!("failed to read `{}` config file", GLOBAL_SETTINGS_FILE_NAME);
             return None;
         };