fix logging levels
This commit is contained in:
parent
c509106aec
commit
ddb0c24977
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -67,8 +67,6 @@ func setupLogging(log LogConfig) {
|
|||
level = logging.INFO
|
||||
}
|
||||
|
||||
logging.SetLevel(level, "")
|
||||
|
||||
// if log tag has file path, then it open file in append mode,
|
||||
// otherwise it will use default stdout logger
|
||||
if log.LogPath != "" {
|
||||
|
|
@ -80,6 +78,8 @@ func setupLogging(log LogConfig) {
|
|||
|
||||
logging.SetBackend(logging.NewLogBackend(logFile, "", 0))
|
||||
}
|
||||
|
||||
logging.SetLevel(level, "")
|
||||
}
|
||||
|
||||
func bootstrapNode() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue