Skip to content

Commit

Permalink
sqash feedb
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Feb 24, 2024
1 parent 1380197 commit 6aba129
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ public RenderTaskListGenerator() {
taskList = Lists.newArrayList();
}

@SuppressWarnings("PMD.GuardLogStatement")
private void logIntermediateRendererListForDebugging(List<Node> orderedNodes) {

for (Node node : orderedNodes) {
if (node.isEnabled()) {

// printing out node name
logger.atInfo().addArgument(() -> node.getClass().getSimpleName()).log("----- {}");
logger.info("----- {}", node.getClass().getSimpleName());

// printing out individual desired state changes
for (StateChange desiredStateChange : node.getDesiredStateChanges()) {
logger.atInfo().addArgument(desiredStateChange).log("{}");
logger.info("{}", desiredStateChange);
}

// printing out process() statement
logger.atInfo().addArgument(node).log("{}: process()");
logger.info("{}: process()", node);
}
}
}
Expand Down

0 comments on commit 6aba129

Please sign in to comment.