Skip to content

Commit

Permalink
Don't emit trace messages while rendering progress
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Apr 7, 2024
1 parent 2172d76 commit 644217e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/outcome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
}
}
Expand Down

0 comments on commit 644217e

Please sign in to comment.