Skip to content

Commit b0a7eee

Browse files
author
v-reyder
committed
fix(builder): fix logging messages on createRepo calls
1 parent 4266550 commit b0a7eee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builder/git/git.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ func createRepo(c cookoo.Context, repoPath, gitHome string) (bool, error) {
205205
if fi.IsDir() {
206206
configPath := filepath.Join(repoPath, "config")
207207
if _, cerr := os.Stat(configPath); cerr == nil {
208-
log.Infof(c, "Directory '%s' already exists.", repoPath)
208+
log.Debugf(c, "Directory '%s' already exists.", repoPath)
209209
return true, nil
210210
} else {
211-
log.Warnf(c, "No config file found at path `%s`; removing it and recreating.", repoPath)
211+
log.Warnf(c, "No config file found at `%s`; removing it and recreating.", repoPath)
212212
if err := os.RemoveAll(repoPath); err != nil {
213213
return false, fmt.Errorf("Unable to remove path '%s': %s", repoPath, err)
214214
}
@@ -220,7 +220,7 @@ func createRepo(c cookoo.Context, repoPath, gitHome string) (bool, error) {
220220
}
221221
}
222222
} else if os.IsNotExist(err) {
223-
log.Infof(c, "Unable to get stat for path '%s': %s .", repoPath, err)
223+
log.Debugf(c, "Unable to get stat for path '%s': %s .", repoPath, err)
224224
} else {
225225
return false, err
226226
}

0 commit comments

Comments
 (0)