use {
super::*,
crate::*,
};
pub fn print_paths(
log_lines: &[LogLine],
printer: &Printer,
trend_computer: Option<&TrendComputer>,
) {
let limit = match printer.detail_level {
0 => 10,
l => l * 50,
};
let groups_name = if printer.all_paths {
"paths"
} else {
"paths (excluding resources like images, css, etc.)"
};
let section = Section {
groups_name,
group_key: "path",
view: View::Limited(limit),
changes: true,
};
printer.print_groups(
§ion,
log_lines,
if printer.all_paths {
|_: &&LogLine| true
} else {
|line: &&LogLine| !line.is_resource()
},
|line| &line.path,
trend_computer,
);
}