Skip to content
Snippets Groups Projects

Enhance logging

Merged Benedikt Wetzel requested to merge wetzel/spesb:enhance-logging into theodolite-kotlin
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading