Skip to content

Commit

Permalink
Don't show outcome if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Sep 10, 2024
1 parent 26257e8 commit 97871a4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/test_utils/conformu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ impl ConformU {
None => (None, line),
};

trace_outcome!("alpaca", test, method, outcome, http_method);
trace_outcome!(
"alpaca",
test,
method,
outcome = (!outcome.is_empty()).then_some(outcome),
http_method
);
}

Self::Conformance => {
Expand All @@ -118,7 +124,11 @@ impl ConformU {

outcome = split_with_whitespace(&mut line, 8)?;

trace_outcome!("conformance", method, outcome);
trace_outcome!(
"conformance",
method,
outcome = (!outcome.is_empty()).then_some(outcome)
);
}
}

Expand Down

0 comments on commit 97871a4

Please sign in to comment.