Added some logging

This commit is contained in:
pb
2025-04-30 17:55:46 +02:00
parent af6aa9e17f
commit 8ee878fee6
3 changed files with 72 additions and 22 deletions

View File

@@ -12,6 +12,7 @@ import (
)
var orderCollection = oclib.LibDataEnum(oclib.ORDER)
var logger = oclib.GetLogger()
// Operations about workflow
type WorkflowSchedulerController struct {
@@ -57,11 +58,13 @@ func (o *WorkflowSchedulerController) Schedule() {
o.ServeJSON()
return
}
o.Data["json"] = map[string]interface{}{
"data": sch.WorkflowExecution,
"code": code,
"error": e,
}
logger.Info().Msg("Succesfully scheduled " + sch.WorkflowExecution[0].WorkflowID + " at " + sch.WorkflowExecution[0].ExecDate.GoString() + " with ID : " + sch.WorkflowExecution[0].UUID )
o.ServeJSON()
}