From a7994515f6a18609ee2f2a486eef6b15cecf150a Mon Sep 17 00:00:00 2001 From: Dominik Lendle <59923031+dominiklendle@users.noreply.github.com> Date: Wed, 18 Nov 2020 11:18:06 +0100 Subject: [PATCH] remove excess logging in abapEnvironmentPullGitRepo step (#2392) * remove excess logging * correct logging behaviour --- cmd/abapEnvironmentPullGitRepo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/abapEnvironmentPullGitRepo.go b/cmd/abapEnvironmentPullGitRepo.go index af6eda3e4..6c6cc0db8 100644 --- a/cmd/abapEnvironmentPullGitRepo.go +++ b/cmd/abapEnvironmentPullGitRepo.go @@ -76,8 +76,6 @@ func runAbapEnvironmentPullGitRepo(options *abapEnvironmentPullGitRepoOptions, t return fmt.Errorf("Something failed during the pull of the repositories: %w", err) } - log.Entry().Info("-------------------------") - log.Entry().Info("All repositories were pulled successfully") return err } @@ -88,6 +86,8 @@ func pullRepositories(repositories []abaputils.Repository, pullConnectionDetails if err != nil { break } + } + if err == nil { finishPullLogs() } return err