Skip to content

Commit

Permalink
Fixing logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.szacillo committed Sep 30, 2020
1 parent 68022fa commit cf177b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/agent/kfstorage/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (g *GCSObjectDownloader) Download(client mockapi.Client, it mockapi.ObjectI
func (g *GCSObjectDownloader) DownloadFile(client mockapi.Client, attrs *storage.ObjectAttrs, file *os.File) error {
rc, err := client.Bucket(attrs.Bucket).Object(attrs.Name).NewReader(g.Context)
if err != nil {
return fmt.Errorf("failed to create reader for object(%q) in bucket(%b): %v",
return fmt.Errorf("failed to create reader for object(%s) in bucket(%s): %v",
attrs.Name,
attrs.Bucket,
err,
Expand All @@ -94,7 +94,7 @@ func (g *GCSObjectDownloader) DownloadFile(client mockapi.Client, attrs *storage
defer rc.Close()
data, err := ioutil.ReadAll(rc)
if err != nil {
return fmt.Errorf("failed to read object(%q) in bucket(%b): %v",
return fmt.Errorf("failed to read object(%s) in bucket(%s): %v",
attrs.Name,
attrs.Bucket,
err,
Expand All @@ -107,7 +107,7 @@ func (g *GCSObjectDownloader) WriteToFile(data []byte, attrs *storage.ObjectAttr
_, err := file.Write(data)
defer file.Close()
if err != nil {
return fmt.Errorf("failed to write data to file(%q): from object(%q) in bucket(%b): %v",
return fmt.Errorf("failed to write data to file(%s): from object(%s) in bucket(%s): %v",
file.Name(),
attrs.Name,
attrs.Bucket,
Expand Down

0 comments on commit cf177b1

Please sign in to comment.