mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 10:06:14 +00:00
enhance: export init should be after init log in fuse client
Signed-off-by: mingwei <gongwilliam@163.com>
This commit is contained in:
parent
e5f248ed36
commit
2bea193ae8
@ -126,8 +126,6 @@ func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
}
|
||||
|
||||
exporter.Init(ModuleName, cfg)
|
||||
|
||||
level := parseLogLevel(opt.Loglvl)
|
||||
_, err = log.InitLog(opt.Logpath, LoggerPrefix, level, nil)
|
||||
if err != nil {
|
||||
@ -190,6 +188,7 @@ func main() {
|
||||
}
|
||||
defer fsConn.Close()
|
||||
|
||||
exporter.Init(ModuleName, cfg)
|
||||
exporter.RegistConsul(super.ClusterName(), ModuleName, cfg)
|
||||
|
||||
if err = fs.Serve(fsConn, super); err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user