change log level and recover code

This commit is contained in:
Anker Jam
2021-01-10 00:33:53 +08:00
parent a98edc03cd
commit 1f475585e5
3 changed files with 4 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ func Session(providerType session.ProviderType, options ...session.ManagerConfig
}
if sess, err := sessionManager.SessionStart(ctx.ResponseWriter, ctx.Request); err != nil {
logs.Warning(`init session error:%s`, err.Error())
logs.Error(`init session error:%s`, err.Error())
} else {
//release session at the end of request
defer sess.SessionRelease(context.Background(), ctx.ResponseWriter)