Skip to content

Commit 6592da9

Browse files
HC logging messy
1 parent bf2cf70 commit 6592da9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/src/main/java/dev/vml/es/acm/core/code/Executor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ private ContextualExecution executeInternal(ExecutionContext context) {
231231
}
232232
contentScript.run();
233233

234-
LOG.info("Execution succeeded '{}'", context.getId());
234+
if (!healthChecking) {
235+
LOG.info("Execution succeeded '{}'", context.getId());
236+
}
235237
return execution.end(ExecutionStatus.SUCCEEDED);
236238
} finally {
237239
if (locking) {
@@ -248,7 +250,9 @@ private ContextualExecution executeInternal(ExecutionContext context) {
248250
execution.error(e);
249251
return execution.end(ExecutionStatus.ABORTED);
250252
} else {
251-
LOG.error("Execution failed '{}'", context.getId(), e);
253+
if (!healthChecking) {
254+
LOG.error("Execution failed '{}'", context.getId(), e);
255+
}
252256
execution.error(e);
253257
return execution.end(ExecutionStatus.FAILED);
254258
}

0 commit comments

Comments
 (0)