Add log.handle
This commit is contained in:
parent
56cf05be77
commit
15f8bc417e
4 changed files with 12 additions and 35 deletions
1
web.go
1
web.go
|
@ -50,7 +50,6 @@ func runWeb(*cli.Context) {
|
|||
// Middlewares.
|
||||
m.Use(render.Renderer(render.Options{Funcs: []template.FuncMap{AppHelpers}}))
|
||||
m.Use(base.InitContext())
|
||||
m.Use(log.ErrHandle())
|
||||
|
||||
// TODO: should use other store because cookie store is not secure.
|
||||
store := sessions.NewCookieStore([]byte("secret123"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue