Use more tracing features
This commit is contained in:
parent
4f7d4f3204
commit
a1d48f6fd3
3 changed files with 5 additions and 4 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue