mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-14 23:00:27 +00:00
chore: print more logs
This commit is contained in:
@@ -17,9 +17,10 @@ func InitRedisClient() (err error) {
|
||||
SysLog("REDIS_CONN_STRING not set, Redis is not enabled")
|
||||
return nil
|
||||
}
|
||||
SysLog("Redis is enabled")
|
||||
opt, err := redis.ParseURL(os.Getenv("REDIS_CONN_STRING"))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
FatalLog(err)
|
||||
}
|
||||
RDB = redis.NewClient(opt)
|
||||
|
||||
|
Reference in New Issue
Block a user