Commit d365d13ecb6fbf087c984a98664fa374828aa4a1

Authored by 陆恒
1 parent 3b2854a5
Exists in master

提交

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/HttpServer/logic/httpserver.go
... ... @@ -40,7 +40,7 @@ func startServerHttpServe() {
40 40 //recover() //可以打印panic的错误信息
41 41 //fmt.Println(recover())
42 42 if err := recover(); err != nil { //产生了panic异常
43   - fmt.Println(err)
  43 + logger.Error("%v",err)
44 44 }
45 45  
46 46 }() //别忘了(), 调用此匿名函数
... ...