aboutsummaryrefslogtreecommitdiff
path: root/src/post/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/post/mod.rs')
-rw-r--r--src/post/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/post/mod.rs b/src/post/mod.rs
index 6e629ab..750d022 100644
--- a/src/post/mod.rs
+++ b/src/post/mod.rs
@@ -82,6 +82,12 @@ impl Post {
}
async fn read_post(dir: &str, fname: PathBuf, cli: &Option<mi::Client>) -> Result<Post> {
+ debug!(
+ "loading {}/{}",
+ dir,
+ fname.clone().into_os_string().into_string().unwrap()
+ );
+
let body = fs::read_to_string(fname.clone())
.await
.wrap_err_with(|| format!("can't read {:?}", fname))?;