🔖 chore: migration logger package

This commit is contained in:
MartialBE
2024-05-29 01:04:23 +08:00
parent 79524108a3
commit ce12558ad6
44 changed files with 207 additions and 174 deletions

View File

@@ -1,6 +1,7 @@
package config
import (
"one-api/common/logger"
"strings"
"time"
@@ -18,7 +19,7 @@ func InitConf() {
setEnv()
if viper.GetBool("debug") {
common.SysLog("running in debug mode")
logger.SysLog("running in debug mode")
}
common.IsMasterNode = viper.GetString("node_type") != "slave"