Fix slf4j usage errors found by checkstyle-logging
[yangtools.git] / yang / yang-maven-plugin / src / main / java / org / opendaylight / yangtools / yang2sources / plugin / YangToSourcesProcessor.java
index afe1043bbb88c7f84e819faa9c2542747cf7f25a..d8c0e0402a2bc8e8d283c1c545df21fc75311043 100644 (file)
@@ -255,7 +255,7 @@ class YangToSourcesProcessor {
 
         if (!thrown.isEmpty()) {
             String message = " One or more code generators failed, including failed list(generatorClass=exception) ";
-            LOG.error("{}" + message + "{}", LOG_PREFIX, thrown.toString());
+            LOG.error("{}{}{}", LOG_PREFIX, message, thrown.toString());
             throw new MojoFailureException(LOG_PREFIX + message + thrown.toString());
         }
     }