Merge branch 'new-logger' into alerting_definitions

Conflicts:
	pkg/api/api.go
	pkg/setting/setting.go
This commit is contained in:
Torkel Ödegaard
2016-06-07 13:31:56 +02:00
29 changed files with 617 additions and 783 deletions
+3
View File
@@ -253,6 +253,9 @@ func Register(r *macaron.Macaron) {
r.Get("/changes", wrap(GetAlertChanges))
})
// error test
r.Get("/metrics/error", wrap(GenerateError))
}, reqSignedIn)
// admin api
+6
View File
@@ -87,3 +87,9 @@ func GetInternalMetrics(c *middleware.Context) Response {
},
}
}
// Genereates a index out of range error
func GenerateError(c *middleware.Context) Response {
var array []string
return Json(200, array[20])
}