From 5fea2b88c12c1ad786c970867beeceaffc86c7a1 Mon Sep 17 00:00:00 2001 From: Chang-Hong Hsu Date: Tue, 6 Aug 2019 10:06:54 -0700 Subject: [PATCH] improve msg in CopyRaw (#31) --- storage/copy_impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/copy_impl.go b/storage/copy_impl.go index 178938f..9bf39e1 100644 --- a/storage/copy_impl.go +++ b/storage/copy_impl.go @@ -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)) } @@ -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 }