From 713d8a49b7b332d146a86d612805e0494506a3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9da=20Housni=20Alaoui?= Date: Wed, 29 May 2024 10:24:56 +0200 Subject: [PATCH] Improve logging --- .../jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java b/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java index 78b0f2d..72a09ef 100644 --- a/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java +++ b/src/main/java/org/jenkinsci/plugins/sonargerrit/SonarToGerritPublisher.java @@ -139,6 +139,7 @@ public void perform( LOGGER.log(Level.SEVERE, e, () -> "Unable to post review: " + e.getMessage()); throw new AbortException("Unable to post review: " + e.getMessage()); } catch (NullPointerException | IllegalArgumentException | IllegalStateException e) { + LOGGER.log(Level.SEVERE, e, e::getMessage); throw new AbortException(e.getMessage()); } }