fn with_reset_level_if_target<R, F: FnOnce() -> R>(
opts: &Args,
target: Symbol,
f: F,
) -> R
Expand description
A higher order function that increases the logging level if the target
matches the one selected with the debug
flag on the command line (and
reset it afterward).