chore: print more logs

This commit is contained in:
JustSong
2023-06-22 01:12:28 +08:00
parent 64d026fc1a
commit b0b0ed2013
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -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)