This commit is contained in:
Liang Ding 2014-11-20 14:00:11 +08:00
parent d1b6a3e32d
commit f006e6bfb4
1 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ import (
// Recover recovers a panic.
func Recover() {
if re := recover(); re != nil {
if re := recover(); nil != re {
glog.Errorf("PANIC RECOVERED:\n %v, %s", re, debug.Stack())
}
}