mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-01 21:14:43 -05:00
Improve logging by adding details as fields instead of into the msg.
This commit is contained in:
parent
1706b36800
commit
c011e95062
16 changed files with 150 additions and 114 deletions
|
|
@ -24,8 +24,8 @@ pub fn ensure_directory_exists(file: &Path) -> Result<(), std::io::Error> {
|
|||
if let Some(path) = file.parent() {
|
||||
if !path.exists() {
|
||||
tracing::info!(
|
||||
"Parent directory does not exist, creating recursively: {}",
|
||||
file.display()
|
||||
directory = %file.display(),
|
||||
"Parent directory does not exist, creating recursively",
|
||||
);
|
||||
return std::fs::create_dir_all(path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue