From 6c9156b25f8b1c28fb0cc909310a20aeeec0e087 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 16 Nov 2020 22:26:58 -0800 Subject: switch to logrus losing filename and line number. Critical for debugging. --- weed/storage/backend/volume_create_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'weed/storage/backend/volume_create_linux.go') diff --git a/weed/storage/backend/volume_create_linux.go b/weed/storage/backend/volume_create_linux.go index 260c2c2a3..ecb5f6378 100644 --- a/weed/storage/backend/volume_create_linux.go +++ b/weed/storage/backend/volume_create_linux.go @@ -6,7 +6,7 @@ import ( "os" "syscall" - "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/util/log" ) func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32) (BackendStorageFile, error) { @@ -16,7 +16,7 @@ func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32 } if preallocate != 0 { syscall.Fallocate(int(file.Fd()), 1, 0, preallocate) - glog.V(1).Infof("Preallocated %d bytes disk space for %s", preallocate, fileName) + log.Debugf("Preallocated %d bytes disk space for %s", preallocate, fileName) } return NewDiskFile(file), nil } -- cgit v1.2.3