mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add more logs
This commit is contained in:
parent
97d69d5336
commit
bcf35876d1
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
|
|||
|
||||
// Ensure target mount point availability
|
||||
if isValid := checkMountPointAvailable(dir); !isValid {
|
||||
glog.Fatalf("Expected mount to still be active, target mount point: %s, please check!", dir)
|
||||
glog.Fatalf("Target mount point is not available: %s, please check!", dir)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue