From 644217e257401c1114a07ee09bcac7d0919fa341 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sun, 7 Apr 2024 13:30:43 -0700 Subject: [PATCH] Don't emit trace messages while rendering progress Avoids https://github.com/sourcefrog/nutmeg/issues/16 --- src/outcome.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/outcome.rs b/src/outcome.rs index 863bceab..4c8840fd 100644 --- a/src/outcome.rs +++ b/src/outcome.rs @@ -238,6 +238,8 @@ impl ScenarioOutcome { } pub fn summary(&self) -> SummaryOutcome { + // Caution: this function is called when rendering progress + // and so should not log; see https://github.com/sourcefrog/nutmeg/issues/16. match self.scenario { Scenario::Baseline => { if self.has_timeout() { @@ -260,10 +262,7 @@ impl ScenarioOutcome { } else if self.success() { SummaryOutcome::Success } else { - warn!( - "Unexpected outcome for mutant {:?}: {:?}", - self.scenario, self.phase_results - ); + // Some unattributed failure; should be rare or impossible? SummaryOutcome::Failure } }