From eb810c16f57ed4a476be3f6b718c8d815f8f092c Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Mon, 1 Apr 2024 12:23:05 -0400 Subject: [PATCH] fix logging for files Signed-off-by: Adam Martin --- cmd/hauler/cli/store/add.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/hauler/cli/store/add.go b/cmd/hauler/cli/store/add.go index 47ea3786..6d45e98f 100644 --- a/cmd/hauler/cli/store/add.go +++ b/cmd/hauler/cli/store/add.go @@ -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, } @@ -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