Skip to content

Commit

Permalink
Reduced the logging level for the stack traces produced when resolvin…
Browse files Browse the repository at this point in the history
…g external artifacts. (bazelbuild#6310)

In case of an IOException, only the message and the type of error is logged as a warning. The stack trace is logged only at the lowest level, so as to limit the amount of logs when there are many problematic artifacts.
  • Loading branch information
odisseus authored Mar 22, 2024
1 parent 0a1dcd4 commit efe6b2a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ public File decode(ArtifactLocation artifactLocation) {
return realFile;
}
} catch (IOException ioException) {
LOG.warn("Failed to resolve real path for " + artifactLocation.getExecutionRootRelativePath(),
ioException);
LOG.warn("Failed to resolve real path for " + artifactLocation.getExecutionRootRelativePath() +
"\n" + ioException.getClass().getSimpleName() + ": " + ioException.getMessage());
LOG.trace(ioException);
}
}
return null;
Expand Down

0 comments on commit efe6b2a

Please sign in to comment.