aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/volume_create.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/storage/backend/volume_create.go
parent9add554feb53706d1d878cc9636d234e622b8a80 (diff)
downloadseaweedfs-6c9156b25f8b1c28fb0cc909310a20aeeec0e087.tar.xz
seaweedfs-6c9156b25f8b1c28fb0cc909310a20aeeec0e087.zip
switch to logrusorigin/logrus
losing filename and line number. Critical for debugging.
Diffstat (limited to 'weed/storage/backend/volume_create.go')
-rw-r--r--weed/storage/backend/volume_create.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/backend/volume_create.go b/weed/storage/backend/volume_create.go
index d4bd8e40f..d408581f3 100644
--- a/weed/storage/backend/volume_create.go
+++ b/weed/storage/backend/volume_create.go
@@ -5,7 +5,7 @@ package backend
import (
"os"
- "github.com/chrislusf/seaweedfs/weed/glog"
+ "github.com/chrislusf/seaweedfs/weed/util/log"
)
func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32) (BackendStorageFile, error) {
@@ -14,7 +14,7 @@ func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32
return nil, e
}
if preallocate > 0 {
- glog.V(2).Infof("Preallocated disk space for %s is not supported", fileName)
+ log.Debugf("Preallocated disk space for %s is not supported", fileName)
}
return NewDiskFile(file), nil
}