add err log for session start (#493)

* add validate for some plugins

* restore getSessionUserWithCache method

* add validate for i18n.config

* use embed dict for i18n

* add err log for session start
This commit is contained in:
yubo 2021-01-08 16:59:26 +08:00 committed by GitHub
parent 312c2d1574
commit e5f05aa724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ func headerUsername(c *gin.Context) string {
func sessionStart(c *gin.Context) error {
s, err := session.Start(c.Writer, c.Request)
if err != nil {
logger.Warningf("session.Start() err %s", err)
return err
}
c.Request = c.Request.WithContext(session.NewContext(c.Request.Context(), s))