From 97871a4284b78c1b0ffa69d53a3208e60b397e9d Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 10 Sep 2024 21:06:02 +0100 Subject: [PATCH] Don't show outcome if empty --- src/test_utils/conformu.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/test_utils/conformu.rs b/src/test_utils/conformu.rs index 92a4b7d..92f229e 100644 --- a/src/test_utils/conformu.rs +++ b/src/test_utils/conformu.rs @@ -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 => { @@ -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) + ); } }