mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-18 18:29:28 +08:00
log
This commit is contained in:
parent
e3b4ea7977
commit
7818bb100d
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
|
||||
@ -25,7 +26,7 @@ func NewRootCmd(name string) (rootCmd *RootCmd) {
|
||||
if err := rootCmd.getConfFromCmdAndInit(cmd); err != nil {
|
||||
return err
|
||||
}
|
||||
return log.InitFromConfig(name)
|
||||
return log.InitFromConfig(name, config.Config.Log.RemainLogLevel)
|
||||
},
|
||||
}
|
||||
rootCmd.Command = c
|
||||
|
Loading…
x
Reference in New Issue
Block a user