diff options
author | Unknwon <u@gogs.io> | 2017-02-17 18:23:35 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-17 18:23:35 -0500 |
commit | b481927d5e89eacec1892af7611997b56bed9883 (patch) | |
tree | aeb886fd38226219863a24fdcdbeb2b79bfaf7d9 /modules/context/context.go | |
parent | 7bd6052efe18b329e85156939f6b89dcdebca764 (diff) |
Improve error handling
Diffstat (limited to 'modules/context/context.go')
-rw-r--r-- | modules/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |