Skip to content

Commit

Permalink
Merge pull request #3454 from jamsman94/bugfix/wfLogTemplate
Browse files Browse the repository at this point in the history
edit  workflow log template
  • Loading branch information
jamsman94 authored Mar 27, 2024
2 parents 2fb2573 + 472c006 commit 37a6342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/microservice/jobexecutor/core/service/step/step_git.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func NewGitStep(spec interface{}, workspace string, envs, secretEnvs []string) (

func (s *GitStep) Run(ctx context.Context) error {
start := time.Now()
log.Infof("Start git clone.", time.Now().Format(setting.WorkflowTimeFormat))
log.Infof("Start git clone.")
defer func() {
log.Infof("Git clone ended. Duration: %.2f seconds.", time.Now().Format(setting.WorkflowTimeFormat), time.Since(start).Seconds())
log.Infof("Git clone ended. Duration: %.2f seconds.", time.Since(start).Seconds())
}()
return s.runGitCmds()
}
Expand Down

0 comments on commit 37a6342

Please sign in to comment.