feat: add daemon log viewer to web UI

Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
Chaos Rogers 2025-07-28 23:36:51 +01:00
parent b803de93de
commit 5a86493824
7 changed files with 111 additions and 20 deletions

View file

@ -46,7 +46,7 @@ impl Config {
return Self::default();
}
serde_yaml::from_str(&contents).unwrap_or_else(|e| {
eprintln!("Failed to parse config, using default: {}", e);
log::warn!("Failed to parse config, using default: {}", e);
Self::default()
})
}
@ -82,7 +82,7 @@ pub fn watch_config(path: &str) -> Arc<Mutex<Config>> {
let new_cfg = Config::load(&watch_path_for_cb);
let mut cfg = config_for_cb.lock().unwrap();
*cfg = new_cfg;
eprintln!("🔄 Reloaded config.yml: {:?}", *cfg);
log::info!("🔄 Reloaded config.yml: {:?}", *cfg);
}
}
})