Tweak logging levels to make node counts more prominent

pull/261/head
Wilfred Hughes 2022-04-17 19:30:58 +07:00
parent 2b7a97f322
commit 83e56bdf27
2 changed files with 4 additions and 4 deletions

@ -55,7 +55,7 @@ fn shortest_path(start: Vertex) -> Vec<(Edge, Vertex)> {
}
};
info!(
debug!(
"Found predecessors for {} vertices (hashmap key: {} bytes, value: {} bytes), with {} left on heap.",
predecessors.len(),
std::mem::size_of::<Vertex>(),
@ -74,13 +74,13 @@ fn shortest_path(start: Vertex) -> Vec<(Edge, Vertex)> {
}
route.reverse();
info!("Found a path of {} with cost {}.", route.len(), cost);
debug!("Found a path of {} with cost {}.", route.len(), cost);
let print_length = if env::var("DFT_VERBOSE").is_ok() {
50
} else {
5
};
info!(
debug!(
"Initial {} items on path: {:#?}",
print_length,
route

@ -901,7 +901,7 @@ fn syntax_from_cursor<'a>(
let position = nl_pos.from_offsets(node.start_byte(), node.end_byte());
let content = &src[node.start_byte()..node.end_byte()];
warn!(
debug!(
"Tree-sitter syntax error at {:?}: {}",
position.get(0),
content