From 4a037e0729ba6fc89511c6eff8e666d9cc738034 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 30 Oct 2018 12:44:49 +0100 Subject: update logging in process engine --- .../egiz/eaaf/core/impl/idp/process/ProcessEngineImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'eaaf_core/src/main/java') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/process/ProcessEngineImpl.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/process/ProcessEngineImpl.java index c9118191..ce4aa15b 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/process/ProcessEngineImpl.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/process/ProcessEngineImpl.java @@ -208,7 +208,7 @@ public class ProcessEngineImpl implements ProcessEngine { throw new ProcessExecutionException("Process instance '" + pi.getId() + "' has not been suspended (current state is " + pi.getState() + ")."); } - log.info("Waking up process instance '{}'.", pi.getId()); + log.debug("Waking up process instance '{}'.", pi.getId()); pi.setState(ProcessInstanceState.STARTED); //put pending-request ID on execution-context because it could be changed @@ -285,15 +285,15 @@ public class ProcessEngineImpl implements ProcessEngine { TaskInfo ti = (TaskInfo) processNode; MDC.put(MDC_CTX_TASK_NAME, ti.getId()); try { - log.info("Processing task '{}'.", ti.getId()); + log.debug("Processing task '{}'.", ti.getId()); Task task = createTaskInstance(ti); if (task != null) { try { - log.info("Executing task implementation for task '{}'.", ti.getId()); - log.debug("Execution context before task execution: {}", pi.getExecutionContext().keySet()); + log.debug("Executing task implementation for task '{}'.", ti.getId()); + log.trace("Execution context before task execution: {}", pi.getExecutionContext().keySet()); pendingReq = task.execute(pendingReq, pi.getExecutionContext()); - log.info("Returned from execution of task '{}'.", ti.getId()); - log.debug("Execution context after task execution: {}", pi.getExecutionContext().keySet()); + log.debug("Returned from execution of task '{}'.", ti.getId()); + log.trace("Execution context after task execution: {}", pi.getExecutionContext().keySet()); } catch (Throwable t) { throw new ProcessExecutionException("Error executing task '" + ti.getId() + "'.", t); } @@ -343,7 +343,7 @@ public class ProcessEngineImpl implements ProcessEngine { // inspect current task if (t.getTo() instanceof TaskInfo && (((TaskInfo) t.getTo()).isAsync())) { // immediately return in case of asynchonous task - log.info("Suspending process instance '{}' for asynchronous task '{}'.", pi.getId(), t.getTo().getId()); + log.debug("Suspending process instance '{}' for asynchronous task '{}'.", pi.getId(), t.getTo().getId()); pi.setState(ProcessInstanceState.SUSPENDED); return; } -- cgit v1.2.3