Skip to content

Commit

Permalink
Remove logging at INFO level in repo-common
Browse files Browse the repository at this point in the history
These logging instructions were only temporary (during development).
  • Loading branch information
mederly committed Jul 7, 2021
1 parent 42da136 commit e45d721
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void purge(OperationResult result) throws ActivityExecutionException {
),
result);

LOGGER.info("State tree after purging: {}", lazy(this::getActivityStateTree)); // TODO trace
LOGGER.trace("State tree after purging: {}", lazy(this::getActivityStateTree));
}

private ActivityStateOverviewType purgeStateRecursively(ActivityStateOverviewType state) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,21 +232,21 @@ private void completeExecutionResult(ActivityExecutionResult executionResult) {
}
}

private void logStart() { // todo debug
LOGGER.info("{}: Starting execution of activity with identifier '{}' and path '{}' (local: '{}') with work state "
private void logStart() {
LOGGER.debug("{}: Starting execution of activity with identifier '{}' and path '{}' (local: '{}') with work state "
+ "prism item path: {}",
getClass().getSimpleName(), activity.getIdentifier(), activity.getPath(), activity.getLocalPath(),
activityState.getItemPath());
}

private void logEnd(ActivityExecutionResult executionResult) { // todo debug
LOGGER.info("{}: Finished execution of activity with identifier '{}' and path '{}' (local: {}) with result: {}",
private void logEnd(ActivityExecutionResult executionResult) {
LOGGER.debug("{}: Finished execution of activity with identifier '{}' and path '{}' (local: {}) with result: {}",
getClass().getSimpleName(), activity.getIdentifier(), activity.getPath(), activity.getLocalPath(),
executionResult);
}

private void logComplete() { // todo debug
LOGGER.info("{}: Skipped execution of activity with identifier '{}' and path '{}' (local: {}) as it was already executed",
private void logComplete() {
LOGGER.debug("{}: Skipped execution of activity with identifier '{}' and path '{}' (local: {}) as it was already executed",
getClass().getSimpleName(), activity.getIdentifier(), activity.getPath(), activity.getLocalPath());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private Task createSuspendedChildTask(OperationResult result) throws ActivityExe
.localRoot(localRoot.toBean())
.localRootActivityExecutionRole(ActivityExecutionRoleType.DELEGATE);

LOGGER.info("Creating activity subtask {} with local root {}", childToCreate.getName(), localRoot);
LOGGER.debug("Creating activity subtask {} with local root {}", childToCreate.getName(), localRoot);
String childOid = getBeans().taskManager.addTask(childToCreate.asPrismObject(), result);
LOGGER.debug("Created activity subtask {}: {}", childToCreate.getName(), childOid);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private void setRealizationStateWithoutCommit(ActivityRealizationStateType value
.item(getRealizationStateItemPath()).replace(value)
.asItemDelta();
getTask().modify(itemDelta);
LOGGER.info("Setting realization state to {} for {}", value, activityExecution);
LOGGER.trace("Setting realization state to {} for {}", value, activityExecution);
}
//endregion

Expand All @@ -254,7 +254,7 @@ private void setResultStateNoCommit(OperationResultStatus resultStatus) throws S
.item(getResultStatusItemPath()).replace(OperationResultStatus.createStatusType(resultStatus))
.asItemDelta();
getTask().modify(itemDelta);
LOGGER.info("Setting result status to {} for {}", resultStatus, activityExecution);
LOGGER.trace("Setting result status to {} for {}", resultStatus, activityExecution);
}
//endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ private void incrementCountersInRepository(OperationResult result)
.asItemDelta();
}
deltas.add(itemDelta);
System.out.println("New value for " + counterIdentifier + " is " + newValue); // TODO remove
updatedValues.put(counterIdentifier, newValue);
}
LOGGER.info("Counter deltas:\n{}", DebugUtil.debugDumpLazily(deltas, 1)); // TODO trace
LOGGER.trace("Counter deltas:\n{}", DebugUtil.debugDumpLazily(deltas, 1));
return deltas;
}

Expand Down

0 comments on commit e45d721

Please sign in to comment.