Skip to content

Commit

Permalink
Adding log output on every setup of a task to namely figure out the h…
Browse files Browse the repository at this point in the history
…ost we are running on for any further debugging.
  • Loading branch information
hekaldama committed Jun 27, 2016
1 parent f339629 commit 717dc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -157,7 +157,7 @@ func (sched *MesosRunonceScheduler) ResourceOffers(driver sched.SchedulerDriver,
},
},
}
log.V(1).Infof("Prepared task: %s with offer %s for launch\n", task.GetName(), offer.Id.GetValue())
fmt.Printf("Prepared task: [%s] with offer [%s] for launch on host [%s]\n", task.GetName(), offer.Id.GetValue(), *offer.Hostname)

if len(config.Task.Docker.Env) != 0 || config.Task.Docker.EnvString != "" {
task.Command.Environment = config.EnvVars()
Expand Down

0 comments on commit 717dc3a

Please sign in to comment.