Skip to content

Commit

Permalink
settings: IgnoreErrors - prefix debug statements with fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
kolloch committed May 13, 2021
1 parent 54be4e9 commit 03b108a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/build/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,7 @@ impl<'help> App<'help> {
let mut parser = Parser::new(self);
if let Err(error) = parser.get_matches_with(&mut matcher, it) {
if self.is_set(AppSettings::IgnoreErrors) {
debug!("ignoring error: {}", error);
debug!("App::_do_parse: ignoring error: {}", error);
} else {
return Err(error);
}
Expand Down
2 changes: 1 addition & 1 deletion src/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ impl<'help, 'app> Parser<'help, 'app> {
}
if let Err(error) = p.get_matches_with(&mut sc_matcher, it) {
if partial_parsing_enabled {
debug!("ignored error in subcommand {}: {:?}", sc_name, error);
debug!("Parser::parse_subcommand: ignored error in subcommand {}: {:?}", sc_name, error);
} else {
return Err(error);
}
Expand Down

0 comments on commit 03b108a

Please sign in to comment.