Add log.handle

This commit is contained in:
Unknown 2014-03-14 01:51:12 -04:00
parent 56cf05be77
commit 15f8bc417e
4 changed files with 12 additions and 35 deletions

1
web.go
View file

@ -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"))