NIFI-869 Fixed formatting issue Fixed formatting issue with printed error message which only apears when NiFi is cnfigured using Logback. Please see NIFI-869 for more details

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Oleg Zhurakousky 2015-10-29 14:19:44 -04:00 committed by Mark Payne
parent dc4004de64
commit 90aea01350
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ public final class StandardProcessScheduler implements ProcessScheduler {
final Throwable cause = e instanceof InvocationTargetException ? e.getCause() : e;
final ComponentLog componentLog = new SimpleProcessLogger(service.getIdentifier(), service);
componentLog.error("Failed to invoke @OnEnabled method due to {}", cause);
componentLog.error("failed to invoke @OnEnabled method due to {}", new Object[]{cause.toString()});
LOG.error("Failed to invoke @OnEnabled method of {} due to {}", service.getControllerServiceImplementation(), cause.toString());
if (LOG.isDebugEnabled()) {
LOG.error("", cause);