fix: tweak config file name logging

This commit is contained in:
Harsh Shandilya 2022-05-19 06:38:40 +05:30
parent a4dd6808f4
commit 487e8eadbb
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -70,9 +70,9 @@ fn configure_tracing() {
fn get_config_path() -> Result<PathBuf> {
let mut config_path =
config_dir().ok_or_else(|| anyhow!("Failed to get config dir"))?;
debug!("Config directory: {}", config_path.to_string_lossy());
config_path.push("substitutor");
config_path.push("config");
config_path.set_extension("toml");
debug!("Config file: {}", config_path.to_string_lossy());
Ok(config_path)
}