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 <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/90aea013 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/90aea013 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/90aea013 Branch: refs/heads/NIFI-730 Commit: 90aea0135062c50e2c8635e178188d2d8c35b883 Parents: dc4004d Author: Oleg Zhurakousky <[email protected]> Authored: Thu Oct 29 14:19:44 2015 -0400 Committer: Mark Payne <[email protected]> Committed: Fri Oct 30 15:52:33 2015 -0400 ---------------------------------------------------------------------- .../nifi/controller/scheduling/StandardProcessScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/90aea013/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/StandardProcessScheduler.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/StandardProcessScheduler.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/StandardProcessScheduler.java index 9ff58c8..5d99d07 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/StandardProcessScheduler.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/StandardProcessScheduler.java @@ -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);
