Convert warn to trace to silence warnings before launching in serve

This commit is contained in:
Jonathan Kelley committed 2024-11-01 17:15:54 -07:00
1 parent e0575b3eb5
commit d126466702
1 file changed
+2 -2
+2 -2
View File
@@ -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;
};