Use more tracing features

This commit is contained in:
Joscha 2023-08-04 18:51:12 +02:00
parent 4f7d4f3204
commit a1d48f6fd3
3 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,7 @@ pub struct Config {}
impl Config {
pub fn load(path: &Path) -> anyhow::Result<Self> {
info!("Loading config from {}", path.display());
info!(path = %path.display(), "Loading config");
Ok(match fs::read_to_string(path) {
Ok(str) => toml::from_str(&str)?,
Err(e) if e.kind() == ErrorKind::NotFound => {