diff --git a/cmd/edgeboxctl/main.go b/cmd/edgeboxctl/main.go index c60516e..e8f5b22 100644 --- a/cmd/edgeboxctl/main.go +++ b/cmd/edgeboxctl/main.go @@ -115,7 +115,11 @@ func systemIterator(name *string, tick int) { tasks.ExecuteSchedules(tick) nextTask := tasks.GetNextTask() 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) } else { log.Printf("No tasks to execute.")