diff --git a/src/lib.rs b/src/lib.rs index dffb27b..850c2c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,17 +29,22 @@ impl Preprocessor for LastChanged { }; let repository_url = match repository_url { toml::Value::String(s) => s, - _ => return Ok(book), + _ => { + log::trace!("git-repository-url is not a string: {repository_url:?}"); + return Ok(book); + } }; log::debug!("Repository URL: {}", repository_url); if !repository_url.contains("github.com") { + log::trace!("git-repository-url is not a GitHub URL: {repository_url:?}"); return Ok(book); } let mut res = None; book.for_each_mut(|item: &mut BookItem| { if let Some(Err(_)) = res { + log::trace!("Error when changing the book. Last result: {res:?}"); return; } @@ -66,16 +71,23 @@ fn last_changed( let footer_start = "", content, footer_start, text); + log::trace!("Adding footer: {text:?}"); Ok(content) }