1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-07 00:00:19 +00:00

in session package, add a helpful variable SLogger to help subpackage logging information

This commit is contained in:
youngsterxyf
2016-03-24 22:43:57 +08:00
parent 2362ca00b5
commit 3300db832b
4 changed files with 31 additions and 8 deletions

View File

@ -100,7 +100,7 @@ func (lp *Provider) SessionInit(maxlifetime int64, savePath string) error {
nowLedis, err := ledis.Open(cfg)
c, err = nowLedis.Select(lp.db)
if err != nil {
println(err)
session.SLogger.Println(err)
return nil
}
return nil