From efe6b2a540707ee79a6be7914ea9be4c232ef0df Mon Sep 17 00:00:00 2001 From: Myroslav Date: Fri, 22 Mar 2024 11:53:23 +0100 Subject: [PATCH] Reduced the logging level for the stack traces produced when resolving external artifacts. (#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. --- .../base/sync/workspace/ArtifactLocationDecoderImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/src/com/google/idea/blaze/base/sync/workspace/ArtifactLocationDecoderImpl.java b/base/src/com/google/idea/blaze/base/sync/workspace/ArtifactLocationDecoderImpl.java index 8489ceb0ac9..397219d5ee5 100644 --- a/base/src/com/google/idea/blaze/base/sync/workspace/ArtifactLocationDecoderImpl.java +++ b/base/src/com/google/idea/blaze/base/sync/workspace/ArtifactLocationDecoderImpl.java @@ -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;