From b481927d5e89eacec1892af7611997b56bed9883 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 17 Feb 2017 18:23:35 -0500 Subject: Improve error handling --- modules/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/context') diff --git a/modules/context/context.go b/modules/context/context.go index 79214856..f6f2756a 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -94,7 +94,7 @@ func (ctx *Context) Handle(status int, title string, err error) { ctx.Data["Title"] = "Page Not Found" case 500: ctx.Data["Title"] = "Internal Server Error" - log.Error(4, "%s: %v", title, err) + log.Error(2, "%s: %v", title, err) if !setting.ProdMode || (ctx.IsSigned && ctx.User.IsAdmin) { ctx.Data["ErrorMsg"] = err } -- cgit v1.2.3