Skip to content
Snippets Groups Projects
Commit 9f3923b7 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

enhance logging

parent 9808367c
No related branches found
No related tags found
2 merge requests!165Enhance logging,!159Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment