Added more route tests

This commit is contained in:
2018-04-25 20:23:35 +02:00
parent ba08b85267
commit a6fea3965c
7 changed files with 45 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func logRequest(ctx *aero.Context, responseTime time.Duration) {
// Notify us about long requests.
// However ignore requests under /auth/ because those depend on 3rd party servers.
if responseTime >= 300*time.Millisecond && !strings.HasPrefix(ctx.URI(), "/auth/") {
if responseTime >= 300*time.Millisecond && !strings.HasPrefix(ctx.URI(), "/auth/") && !strings.HasPrefix(ctx.URI(), "/sitemap/") {
err.Error("Long response time", ip, hostName, responseTimeString, ctx.StatusCode, ctx.URI())
}
}