capture duration in logs

pull/3/head
Brad Rydzewski 4 years ago
parent 316bd38dda
commit e62bccbb2f

@ -245,6 +245,7 @@ func (s *Runner) Run(ctx context.Context, stage *drone.Stage) error {
log.WithError(err).Debug("stage failed")
return err
}
log.Debug("updated stage to complete")
log.WithField("duration", stage.Stopped-stage.Started).
Debug("updated stage to complete")
return nil
}

Loading…
Cancel
Save