diff options
author | Unknwon <u@gogs.io> | 2017-02-10 00:11:51 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-10 00:11:51 -0500 |
commit | f5dc43644184a7c3f613d5f3e1aa1be8ed8d13af (patch) | |
tree | 499042200f21842bd906d24e07ca742fa65d8f02 /modules/context | |
parent | d9d329bec8984723dfad97d496278c4c9e35d5d5 (diff) |
Minor improve on error handling
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/context.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index 296608f0..a9a5e270 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -118,9 +118,6 @@ func (ctx *Context) NotFoundOrServerError(title string, errck func(error) bool, } func (ctx *Context) HandleText(status int, title string) { - if (status/100 == 4) || (status/100 == 5) { - log.Error(4, "%s", title) - } ctx.PlainText(status, []byte(title)) } |