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:
parent
312c2d1574
commit
e5f05aa724
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue