From 9f3923b7bc17196f764fba7bd3601704e0f38b43 Mon Sep 17 00:00:00 2001 From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de> Date: Fri, 2 Jul 2021 15:30:11 +0200 Subject: [PATCH] enhance logging --- .../theodolite/execution/operator/ExecutionEventHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/execution/operator/ExecutionEventHandler.kt b/theodolite-quarkus/src/main/kotlin/theodolite/execution/operator/ExecutionEventHandler.kt index 4168bd19b..653366010 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/execution/operator/ExecutionEventHandler.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/execution/operator/ExecutionEventHandler.kt @@ -53,10 +53,10 @@ class ExecutionHandler( */ @Synchronized override fun onUpdate(oldExecution: ExecutionCRD, newExecution: ExecutionCRD) { - logger.info { "Receive update event for execution ${oldExecution.metadata.name}" } newExecution.spec.name = newExecution.metadata.name oldExecution.spec.name = oldExecution.metadata.name if(gson.toJson(oldExecution.spec) != gson.toJson(newExecution.spec)) { + logger.info { "Receive update event for execution ${oldExecution.metadata.name}" } when(this.stateHandler.getExecutionState(newExecution.metadata.name)) { States.RUNNING -> { this.stateHandler.setExecutionState(newExecution.spec.name, States.RESTART) -- GitLab