PathBuf debug formatting
This commit is contained in:
parent
7e9d553ef8
commit
e7f0fc5a38
2 changed files with 6 additions and 4 deletions
|
|
@ -35,14 +35,14 @@ impl AppState {
|
||||||
.expect("could not determine cache directory")
|
.expect("could not determine cache directory")
|
||||||
.join("shrupl");
|
.join("shrupl");
|
||||||
|
|
||||||
trace!("cachedir: {}", dir_name.display());
|
trace!("cachedir: {:?}", dir_name.display());
|
||||||
dir_name
|
dir_name
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cache_file(args: &Cli) -> PathBuf {
|
fn cache_file(args: &Cli) -> PathBuf {
|
||||||
let file_name = Self::cache_dir().join(format!("{}.json", args.get_hash()));
|
let file_name = Self::cache_dir().join(format!("{}.json", args.get_hash()));
|
||||||
|
|
||||||
trace!("cachefile: {}", file_name.display());
|
trace!("cachefile: {:?}", file_name.display());
|
||||||
file_name
|
file_name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ impl AppState {
|
||||||
let file_name = Self::cache_file(args);
|
let file_name = Self::cache_file(args);
|
||||||
|
|
||||||
Self::load(&file_name)
|
Self::load(&file_name)
|
||||||
.inspect_err(|e| debug!("could not resume from {}: {e}", file_name.display()))
|
.inspect_err(|e| debug!("could not resume from {:?}: {e}", file_name.display()))
|
||||||
.map(|state| {
|
.map(|state| {
|
||||||
debug!("successfully loaded AppState");
|
debug!("successfully loaded AppState");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,9 @@ impl Display for FileUploading {
|
||||||
write!(
|
write!(
|
||||||
f,
|
f,
|
||||||
"Uploading ({:?}, {}, {})",
|
"Uploading ({:?}, {}, {})",
|
||||||
self.path, self.size, self.offset
|
self.path.display(),
|
||||||
|
self.size,
|
||||||
|
self.offset
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue