Use time.Since instead of time.Now().Sub
@@ -55,7 +55,7 @@ func (s *stepStartInstance) Run(state multistep.StateBag) multistep.StepAction {
return multistep.ActionHalt
}
- context.LoggerFromContext(ctx).WithField("boot_time", time.Now().Sub(startTime)).Info("started instance")
+ context.LoggerFromContext(ctx).WithField("boot_time", time.Since(startTime)).Info("started instance")
state.Put("instance", instance)
