From 9831f75ea9348ec4783fe166c65ed0d573f892e4 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 9 Nov 2019 12:34:19 -0600 Subject: [PATCH] promote rest errors to WARN level --- backend/app/rest/httperrors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/rest/httperrors.go b/backend/app/rest/httperrors.go index 60d4bcb8..1cf1f71b 100644 --- a/backend/app/rest/httperrors.go +++ b/backend/app/rest/httperrors.go @@ -37,7 +37,7 @@ const ( // SendErrorJSON makes {error: blah, details: blah} json body and responds with error code func SendErrorJSON(w http.ResponseWriter, r *http.Request, httpStatusCode int, err error, details string, errCode int) { - log.Printf("[DEBUG] %s", errDetailsMsg(r, httpStatusCode, err, details, errCode)) + log.Printf("[WARN] %s", errDetailsMsg(r, httpStatusCode, err, details, errCode)) render.Status(r, httpStatusCode) render.JSON(w, r, rest.JSON{"error": err.Error(), "details": details, "code": errCode}) }