Skip to content

Commit

Permalink
Remove spammy debug! log from path_to_root
Browse files Browse the repository at this point in the history
The log statement is empty and simply fills up the logs when you run `mdbook` with `RUST_LOG=debug`.
  • Loading branch information
mgeisler authored Feb 13, 2023
1 parent 3966498 commit c150529
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ pub fn write_file<P: AsRef<Path>>(build_dir: &Path, filename: P, content: &[u8])
/// Consider [submitting a new issue](https://github.com/rust-lang/mdBook/issues)
/// or a [pull-request](https://github.com/rust-lang/mdBook/pulls) to improve it.
pub fn path_to_root<P: Into<PathBuf>>(path: P) -> String {
debug!("path_to_root");
// Remove filename and add "../" for every directory

path.into()
Expand Down

0 comments on commit c150529

Please sign in to comment.