From c25f4af00f52fdaaa51d0f1993f8a21238348cf0 Mon Sep 17 00:00:00 2001 From: Brian Bland Date: Thu, 16 Jul 2015 12:40:31 -0700 Subject: [PATCH] Reduces log level of auth error lines from error->warn An error level log is already produced within app.authorized() if an actual unexpected error occurs during authorization, so this warning level log remains for auditability purposes, but should not be considered an error condition. Addresses #704 Signed-off-by: Brian Bland --- registry/handlers/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index d3985067..8f9e918d 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -359,7 +359,7 @@ func (app *App) dispatcher(dispatch dispatchFunc) http.Handler { context := app.context(w, r) if err := app.authorized(w, r, context); err != nil { - ctxu.GetLogger(context).Errorf("error authorizing context: %v", err) + ctxu.GetLogger(context).Warnf("error authorizing context: %v", err) return }