diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-26 09:25:54 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-26 09:25:54 -0700 |
| commit | 4c1a3187bfc91e9310429ea2b0d5b8c55dd7e9db (patch) | |
| tree | e2f86c4251bde48f1f207966200c4c6c489c4637 | |
| parent | ab759f0ec2185a256b9164e72132790b7bc7696b (diff) | |
| download | seaweedfs-4c1a3187bfc91e9310429ea2b0d5b8c55dd7e9db.tar.xz seaweedfs-4c1a3187bfc91e9310429ea2b0d5b8c55dd7e9db.zip | |
fix log error
| -rw-r--r-- | weed/command/volume.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index 5a0dc9e67..fd25e0a6e 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -229,10 +229,10 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v var startTime time.Time // Stop heartbeats - fmt.Println("stop send heartbeat and sleep %d sec", v.preStopSeconds) + glog.V(0).Infof("stop send heartbeat and sleep %d seconds ...", v.preStopSeconds) volumeServer.SendHeartbeat = false time.Sleep(time.Duration(*v.preStopSeconds) * time.Second) - fmt.Println("end sleep 20 sec") + glog.V(0).Infof("end sleep %d sec", v.preStopSeconds) // firstly, stop the public http service to prevent from receiving new user request if nil != publicHttpDown { startTime = time.Now() |
