chore: print more logs

This commit is contained in:
JustSong committed 2023-06-22 01:12:28 +08:00
1 parent 64d026fc1a
commit b0b0ed2013
2 files changed
+6 -2

No files matched your search

+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)