From d5e4d377a617f6c4ea718effb35fa9eb42103ba3 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 4 Jul 2024 22:48:16 +0200 Subject: [PATCH] Do not log stacktrace for repositoryAccessFailed (#811) For https://github.com/openrewrite/rewrite/issues/4101 --- .../openrewrite/maven/MavenLoggingResolutionEventListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java b/src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java index 99ba40f4..0305a476 100644 --- a/src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java +++ b/src/main/java/org/openrewrite/maven/MavenLoggingResolutionEventListener.java @@ -46,7 +46,8 @@ public void downloadError(GroupArtifactVersion gav, List attemptedUris, @Override public void repositoryAccessFailed(String uri, Throwable e) { - logger.warn("Failed to access maven repository " + uri, e); + logger.warn("Failed to access maven repository " + uri + " due to: " + e.getMessage()); + logger.debug(e); } private static String pomContaining(@Nullable Pom containing) {