From 2877806c260cd87b7ea2b2e8600b5e22095bc1f8 Mon Sep 17 00:00:00 2001 From: Sebastian Westemeyer Date: Fri, 22 Nov 2024 10:15:55 +0100 Subject: [PATCH] Updated log handling --- .../de/gebit/plugins/autoconfig/AutoconfigStartup.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java b/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java index eb0044f..9415a42 100644 --- a/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java +++ b/src/main/java/de/gebit/plugins/autoconfig/AutoconfigStartup.java @@ -76,11 +76,9 @@ private List processUpdateHandler(@NotNull Project project, UpdateHa try { return updateHandler.updateConfiguration(extensionConfiguration.get(), project); } catch (Exception e) { - LOG.error("An error occurred trying to process configuration updates for \"{}\"", e, - updateHandler.getUpdaterName()); - Notifications.showError( - "An error occurred trying to process configuration updates for \"" + updateHandler.getUpdaterName() + "\"", - project); + String errorMessage = "An error occurred trying to process configuration updates for \"" + updateHandler.getUpdaterName() + "\""; + LOG.error(errorMessage, e); + Notifications.showError(errorMessage, project); } } else { LOG.info("No configuration for " + updateHandler.getUpdaterName() + " found.");