- SlcExecution slcExecution = slcExecutionDao.getSlcExecution(uuid);
-
- if (slcExecution == null)
- throw new SlcException("Could not find slc execution " + uuid);
-
- slcExecution.getSteps().addAll(msg.getSteps());
-
- slcExecutionDao.update(slcExecution);
- log.debug("Added " + msg.getSteps().size()
- + " steps to SlcExecution with uuid "
- + slcExecution.getUuid());
+ if (log.isTraceEnabled()) {
+ log.trace("Trying to add additional steps to SLC execution #"
+ + uuid + ":");
+ for (SlcExecutionStep step : msg.getSteps()) {
+ log.trace("Step " + step.getUuid() + " (in SLC execution #"
+ + uuid + ")");
+ }
+ log.trace("Adding " + msg.getSteps().size()
+ + " steps to SLC execution #" + uuid);
+ }
+
+ slcExecutionDao.addSteps(uuid, msg.getSteps());