Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
improve msg in CopyRaw (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsblue authored Aug 6, 2019
1 parent cb70d3f commit 5fea2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/copy_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (c copyImpl) CopyRaw(ctx context.Context, source, destination DataReference
rc, err := c.rawStore.ReadRaw(ctx, source)

if err != nil && !IsFailedWriteToCache(err) {
logger.Errorf(ctx, "Failed to read from the raw store. Error: %v", err)
logger.Errorf(ctx, "Failed to read from the raw store when copying. Error: %v", err)
c.metrics.ReadFailureUnrelatedToCache.Inc()
return errs.Wrap(err, fmt.Sprintf("path:%v", destination))
}
Expand All @@ -56,7 +56,7 @@ func (c copyImpl) CopyRaw(ctx context.Context, source, destination DataReference
err = c.rawStore.WriteRaw(ctx, destination, length, Options{}, rc)

if err != nil && !IsFailedWriteToCache(err) {
logger.Errorf(ctx, "Failed to write to the raw store. Error: %v", err)
logger.Errorf(ctx, "Failed to write to the raw store when copying. Error: %v", err)
c.metrics.WriteFailureUnrelatedToCache.Inc()
return err
}
Expand Down

0 comments on commit 5fea2b8

Please sign in to comment.