mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
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:
parent
b803de93de
commit
5a86493824
7 changed files with 111 additions and 20 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue