Skip to content

Commit

Permalink
pattern/deser: log the pattern when it's invalid
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Benke <tibor.benke@balabit.com>
  • Loading branch information
Tibor Benke committed Aug 19, 2015
1 parent 806389b commit 1cf703b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matcher/pattern/deser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl serde::de::Visitor for PatternVisitor {
match pattern_parser::pattern(&pattern) {
Ok(pattern) => pattern,
Err(err) => {
error!("Invalid field 'pattern': name={:?} uuid={:?} error={}", name, uuid, err);
error!("Invalid field 'pattern': pattern={:?} name={:?} uuid={:?} error={}", pattern, name, uuid, err);
try!(Err(serde::de::Error::missing_field_error("pattern")))
}
}
Expand Down

0 comments on commit 1cf703b

Please sign in to comment.