From c150529c7ceb1c078686908a84abd8aae856e27f Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Mon, 13 Feb 2023 16:17:31 +0100 Subject: [PATCH] Remove spammy `debug!` log from `path_to_root` The log statement is empty and simply fills up the logs when you run `mdbook` with `RUST_LOG=debug`. --- src/utils/fs.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/fs.rs b/src/utils/fs.rs index 0d6f3837..67f7062d 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -38,7 +38,6 @@ pub fn write_file>(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>(path: P) -> String { - debug!("path_to_root"); // Remove filename and add "../" for every directory path.into()