-
Couldn't load subscription status.
- Fork 191
Closed
Description
I use the scs/session package in Echo, and if I export anything to the browser in the HTTPErrorHandler function of Echo, the Echo of logger will print such warning messages:
Level:WARN, file:context.go, line:484, message:response, already, committed.
If I don't use session, there won't be such a problem.
package main
import (
"time"
"github.com/alexedwards/scs/engine/memstore"
"github.com/alexedwards/scs/session"
"github.com/labstack/echo"
)
func main() {
app := echo.New()
app.Debug = true
sessionManager := session.Manage(memstore.New(12 * time.Hour))
app.Use(echo.WrapMiddleware(sessionManager))
app.HTTPErrorHandler = errorHandler
app.Start(":80")
}
func errorHandler(err error, ctx echo.Context) {
ctx.String(200, "test")
}Metadata
Metadata
Assignees
Labels
No labels