mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 17:47:02 +05:30
feat: log config directory to tracing stream
This commit is contained in:
parent
01af0c6f3f
commit
a4dd6808f4
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ use std::path::PathBuf;
|
|||
|
||||
use anyhow::{anyhow, Result};
|
||||
use dirs::config_dir;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::clipboard::monitor;
|
||||
use crate::config::Replacements;
|
||||
|
@ -69,6 +70,7 @@ 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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue