Skip to content

Commit

Permalink
Improve logs for the s3 store.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Leduc-Hamel committed Mar 6, 2021
1 parent f21b738 commit d299115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/store/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewS3Production(cfg *config.Config) Store {
}

func (s *S3) Setup(ctx context.Context) error {
s.cfg.Logger().Debug().Msgf("Creating bucket %s", s.cfg.S3Bucket())
s.cfg.Logger().Debug().Str("bucket", s.cfg.S3Bucket()).Msg("Starting Creating bucket")
input := &s3.CreateBucketInput{Bucket: aws.String(s.cfg.S3Bucket())}
_, err := s.client.CreateBucket(input)
if err != nil {
Expand All @@ -64,7 +64,7 @@ func (s *S3) Setup(ctx context.Context) error {
return err
}
}
s.cfg.Logger().Debug().Msgf("Creating bucket %s: Succeed", s.cfg.S3Bucket())
s.cfg.Logger().Debug().Str("bucket", s.cfg.S3Bucket()).Msg("Succeed Creating bucket")
return nil
}

Expand Down

0 comments on commit d299115

Please sign in to comment.