Skip to content

Commit

Permalink
Merge pull request #1626 from guwirth/coverage-message-info
Browse files Browse the repository at this point in the history
INFO: Saved 'n' coverage measures for file '...'
  • Loading branch information
guwirth authored Dec 12, 2018
2 parents 52099e0 + e065fc8 commit 8444916
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ private void saveMeasures(SensorContext context,

try {
newCoverage.save();
if (LOG.isDebugEnabled()) {
LOG.debug("Saved '{}' coverage measures for file '{}'", measures.size(), filePath);
}
} catch (RuntimeException ex) {
LOG.error("Cannot save measure for file '{}' , ignoring measure. ", filePath, ex);
CxxUtils.validateRecovery(ex, getLanguage());
}
LOG.info("Saved '{}' coverage measures for file '{}'", measures.size(), filePath);
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("Cannot find the file '{}', ignoring coverage measures", filePath);
Expand Down

0 comments on commit 8444916

Please sign in to comment.