Skip to content

Commit

Permalink
Log FailureAnalyzer errors at trace level
Browse files Browse the repository at this point in the history
Update `FailureAnalyzers` to log errors at `trace` rather than `debug`.
This should reduce noise when an analyzer unexpectedly fails and the
user is running with `--debug`.

Fixes gh-24630
  • Loading branch information
philwebb committed Jan 7, 2021
1 parent a24ec9d commit 7cbd57b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -114,7 +114,7 @@ private FailureAnalysis analyze(Throwable failure, List<FailureAnalyzer> analyze
}
}
catch (Throwable ex) {
logger.debug(LogMessage.format("FailureAnalyzer %s failed", analyzer), ex);
logger.trace(LogMessage.format("FailureAnalyzer %s failed", analyzer), ex);
}
}
return null;
Expand Down

0 comments on commit 7cbd57b

Please sign in to comment.