Fix wrong handling of task arguments in systemIterator
parent
9f63ab7f03
commit
81b545f868
|
@ -115,7 +115,11 @@ func systemIterator(name *string, tick int) {
|
||||||
tasks.ExecuteSchedules(tick)
|
tasks.ExecuteSchedules(tick)
|
||||||
nextTask := tasks.GetNextTask()
|
nextTask := tasks.GetNextTask()
|
||||||
if nextTask.Task != "" {
|
if nextTask.Task != "" {
|
||||||
log.Printf("Executing task %s / Args: %s", nextTask.Task, nextTask.Args)
|
taskArguments := "No arguments"
|
||||||
|
if nextTask.Args.Valid {
|
||||||
|
taskArguments = nextTask.Args.String
|
||||||
|
}
|
||||||
|
log.Printf("Executing task %s / Args: %s", nextTask.Task, taskArguments)
|
||||||
tasks.ExecuteTask(nextTask)
|
tasks.ExecuteTask(nextTask)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("No tasks to execute.")
|
log.Printf("No tasks to execute.")
|
||||||
|
|
Loading…
Reference in New Issue