Skip to content

Commit

Permalink
Fix wrong log function (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojagodzinski authored Apr 27, 2018
1 parent d5127b7 commit 93a26d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ SUBSCRIBE_LOOP:
}
}

log.Info("Trying to to send remaining state updates with %s timeout", e.config.StateUpdateWaitTimeout)
log.Infof("Trying to to send remaining state updates with %s timeout", e.config.StateUpdateWaitTimeout)
if err := e.stateUpdater.Wait(e.config.StateUpdateWaitTimeout); err != nil { // try to send remaining state updates
log.WithError(err).Error("Unable to send remaining state updates to Mesos agent")
}
Expand Down Expand Up @@ -281,7 +281,7 @@ func (e *Executor) handleMesosEvent(event executor.Event) error {
case executor.Event_ACKNOWLEDGED:
e.stateUpdater.Acknowledge(event.GetAcknowledged().GetUUID())
default:
log.WithField("Type", event.Type).Warn("Unknown event type. Event: %s", event.GoString())
log.WithField("Type", event.Type).Warnf("Unknown event type. Event: %s", event.GoString())
}

return nil
Expand Down

0 comments on commit 93a26d2

Please sign in to comment.