Skip to content

Commit

Permalink
Improve logs and adjust log-level for repo bootstrap
Browse files Browse the repository at this point in the history
Signed-off-by: Nassim 'Nass' Eddequiouaq <[email protected]>
  • Loading branch information
n4ss committed Mar 8, 2017
1 parent d6ba9f9 commit dd1ef8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,12 @@ func (r *NotaryRepository) publish(cl changelist.Changelist) error {
if _, ok := err.(ErrRepositoryNotExist); ok {
err := r.bootstrapRepo()
if _, ok := err.(store.ErrMetaNotFound); ok {
logrus.Debugf("No metadata found on disk, initializing repository %s from scratch", r.gun.String())
logrus.Infof("No TUF data found locally or remotely - initializing repository %s for the first time", r.gun.String())
err = r.Initialize(nil)
}

if err != nil {
logrus.Debugf("Unable to initialize repository at publish-time: %s", err.Error())
logrus.WithError(err).Debugf("Unable to load or initialize repository during first publish: %s", err.Error())
return err
}

Expand Down

0 comments on commit dd1ef8b

Please sign in to comment.