1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-24 17:12:16 +02:00

log: add message about number of threads used

Closes #2122
This commit is contained in:
Andrew Gallant 2023-11-24 15:05:47 -05:00
parent 3f0c8c2900
commit b138d5740a

View File

@ -171,6 +171,7 @@ impl HiArgs {
} else { } else {
std::thread::available_parallelism().map_or(1, |n| n.get()).min(12) std::thread::available_parallelism().map_or(1, |n| n.get()).min(12)
}; };
log::debug!("using {threads} thread(s)");
let with_filename = low let with_filename = low
.with_filename .with_filename
.unwrap_or_else(|| low.vimgrep || !paths.is_one_file); .unwrap_or_else(|| low.vimgrep || !paths.is_one_file);