Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Min Min <[email protected]>
  • Loading branch information
jamsman94 committed Mar 27, 2024
1 parent 2fb2573 commit 472c006
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 472c006

Please sign in to comment.