feat(loggin): improved http request panic handling

This commit is contained in:
Torkel Ödegaard
2016-06-07 10:05:10 +02:00
parent 9741af2031
commit 3dc7706c45
5 changed files with 203 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ func newMacaron() *macaron.Macaron {
m := macaron.New()
m.Use(middleware.Logger())
m.Use(macaron.Recovery())
m.Use(middleware.Recovery())
if setting.EnableGzip {
m.Use(middleware.Gziper())
@@ -34,7 +34,7 @@ func newMacaron() *macaron.Macaron {
for _, route := range plugins.StaticRoutes {
pluginRoute := path.Join("/public/plugins/", route.PluginId)
log.Debug("Plugins: Adding route %s -> %s", pluginRoute, route.Directory)
logger.Debug("Plugins: Adding route", "route", pluginRoute, "dir", route.Directory)
mapStatic(m, route.Directory, "", pluginRoute)
}