feat: log version
This commit is contained in:
parent
147b8a47df
commit
7c39aad1ac
@ -36,6 +36,7 @@ var (
|
||||
func init() {
|
||||
serverCmd.Flags().StringVarP(&serverHost, "host", "", "127.0.0.1:7777", "specify the host of the goc server")
|
||||
serverCmd.Flags().StringVarP(&serverStore, "store", "", ".goc.kvstore", "specify the host of the goc server")
|
||||
log.Infof("version: %v", Version)
|
||||
|
||||
rootCmd.AddCommand(serverCmd)
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ import (
|
||||
"crypto/sha256"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/qiniu/goc/v2/cmd"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"net/rpc"
|
||||
@ -131,7 +130,6 @@ func RunGocServerUntilExit(host string, s store.Store) error {
|
||||
}
|
||||
|
||||
go gs.watchLoop()
|
||||
log.Infof("version: %v", cmd.Version)
|
||||
return r.Run(host)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user