diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 18:53:41 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 18:53:41 -0400 |
commit | 100cd181bcc9fc46981cc2a4b88c05ad459fbc8f (patch) | |
tree | 2b2a8f07fa2760721e9418c39c51d751618ada5a /web.go | |
parent | 03c2468c2fa68e5b3c5cb6c498a155e7d725ccdb (diff) |
Add router log config option
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,7 +42,7 @@ func newMartini() *martini.ClassicMartini { m := martini.New() m.Use(middleware.Logger()) m.Use(martini.Recovery()) - m.Use(martini.Static("public")) + m.Use(martini.Static("public", martini.StaticOptions{SkipLogging: !base.RouterLog})) m.MapTo(r, (*martini.Routes)(nil)) m.Action(r.Handle) return &martini.ClassicMartini{m, r} @@ -208,4 +208,5 @@ func runWeb(*cli.Context) { qlog.Error(err.Error()) } } + qlog.Fatalf("Invalid protocol: %s", protocol) } |