Clean up logging a little

This commit is contained in:
Marc Di Luzio 2020-06-27 02:02:18 +01:00
parent 5bbb2ff37f
commit 5b5f80be7d
2 changed files with 2 additions and 5 deletions

View file

@ -430,16 +430,14 @@ func (w *World) ExecuteCommandQueues() {
// ExecuteCommand will execute a single command
func (w *World) ExecuteCommand(c *Command, rover string) (err error) {
log.Printf("Executing command: %+v\n", *c)
log.Printf("Executing command: %+v for %s\n", *c, rover)
switch c.Command {
case CommandMove:
if dir, err := bearing.FromString(c.Bearing); err != nil {
return err
} else if _, err := w.MoveRover(rover, dir); err != nil {
return err
}
case CommandStash: