diff --git a/plugin/src/main/java/org/siouan/frontendgradleplugin/infrastructure/gradle/GradleLoggerAdapter.java b/plugin/src/main/java/org/siouan/frontendgradleplugin/infrastructure/gradle/GradleLoggerAdapter.java index fd5beb86..76143ae5 100644 --- a/plugin/src/main/java/org/siouan/frontendgradleplugin/infrastructure/gradle/GradleLoggerAdapter.java +++ b/plugin/src/main/java/org/siouan/frontendgradleplugin/infrastructure/gradle/GradleLoggerAdapter.java @@ -41,11 +41,9 @@ public void init(final org.gradle.api.logging.Logger gradleLogger, final LogLeve @Override public void debug(final String message, Object... parameters) { - if ((gradleLogger == null) || !gradleLogger.isDebugEnabled()) { - return; + if ((gradleLogger != null) && gradleLogger.isDebugEnabled()) { + gradleLogger.debug(formatMessage(message), parameters); } - - gradleLogger.debug(formatMessage(message), parameters); } @Override