Skip to content

Commit

Permalink
Merge pull request #221 from amartin120/fix-file-logging
Browse files Browse the repository at this point in the history
fix logging for files
  • Loading branch information
amartin120 authored Apr 1, 2024
2 parents b18f55e + eb810c1 commit f6f2275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/hauler/cli/store/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func AddFileCmd(ctx context.Context, o *AddFileOpts, s *store.Layout, reference

func storeFile(ctx context.Context, s *store.Layout, fi v1alpha1.File) error {
l := log.FromContext(ctx)
l.Infof("adding 'file' [%s] to the store", fi.Name)


copts := getter.ClientOptions{
NameOverride: fi.Name,
}
Expand All @@ -53,6 +52,7 @@ func storeFile(ctx context.Context, s *store.Layout, fi v1alpha1.File) error {
return err
}

l.Infof("adding 'file' [%s] to the store as [%s]", fi.Path, ref.Name())
_, err = s.AddOCI(ctx, f, ref.Name())
if err != nil {
return err
Expand Down

0 comments on commit f6f2275

Please sign in to comment.