chore: print more logs

This commit is contained in:
JustSong
2023-06-22 01:12:28 +08:00
parent 567916bd80
commit b86de464b5
2 changed files with 6 additions and 2 deletions

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)