aboutsummaryrefslogtreecommitdiff
path: root/weed/images/resizing.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-16 22:26:58 -0800
commit6c9156b25f8b1c28fb0cc909310a20aeeec0e087 (patch)
tree343e30d98e46a081aa57adfc334b807d0b3255dc /weed/images/resizing.go
parent9add554feb53706d1d878cc9636d234e622b8a80 (diff)
downloadseaweedfs-origin/logrus.tar.xz
seaweedfs-origin/logrus.zip
switch to logrusorigin/logrus
losing filename and line number. Critical for debugging.
Diffstat (limited to 'weed/images/resizing.go')
-rw-r--r--weed/images/resizing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/images/resizing.go b/weed/images/resizing.go
index b048daa1c..c05b70064 100644
--- a/weed/images/resizing.go
+++ b/weed/images/resizing.go
@@ -10,7 +10,7 @@ import (
"github.com/disintegration/imaging"
- "github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util/log"
)
func Resized(ext string, read io.ReadSeeker, width, height int, mode string) (resized io.ReadSeeker, w int, h int) {
@@ -50,7 +50,7 @@ func Resized(ext string, read io.ReadSeeker, width, height int, mode string) (re
}
return bytes.NewReader(buf.Bytes()), dstImage.Bounds().Dx(), dstImage.Bounds().Dy()
} else {
- glog.Error(err)
+ log.Error(err)
}
return read, 0, 0
}