aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_linux.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-31 23:16:05 -0700
committerchrislu <chris.lu@gmail.com>2022-08-31 23:16:05 -0700
commitbcf35876d1a78f19104118497e9230834109579a (patch)
tree6d72f5d0fce79404f9d8c5dd2064af397b529d68 /weed/command/mount_linux.go
parent97d69d5336ab434af1bd325a1a041a76e662627b (diff)
downloadseaweedfs-bcf35876d1a78f19104118497e9230834109579a.tar.xz
seaweedfs-bcf35876d1a78f19104118497e9230834109579a.zip
add more logs
Diffstat (limited to 'weed/command/mount_linux.go')
-rw-r--r--weed/command/mount_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/mount_linux.go b/weed/command/mount_linux.go
index aebb14e61..1d1727519 100644
--- a/weed/command/mount_linux.go
+++ b/weed/command/mount_linux.go
@@ -3,6 +3,7 @@ package command
import (
"bufio"
"fmt"
+ "github.com/seaweedfs/seaweedfs/weed/glog"
"io"
"os"
"strings"
@@ -142,6 +143,9 @@ func checkMountPointAvailable(dir string) bool {
}
if mounted, err := mounted(mountPoint); err != nil || mounted {
+ if err != nil {
+ glog.Errorf("check %s: %v", mountPoint, err)
+ }
return false
}