log panics

This commit is contained in:
Asim Aslam
2017-05-16 19:14:00 +01:00
parent 4cb22b5969
commit a7312f5c7e
3 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,8 @@ func (s *rpcServer) accept(sock transport.Socket) {
sock.Close()
if r := recover(); r != nil {
log.Log(r, string(debug.Stack()))
log.Log("panic recovered: ", r)
log.Log(string(debug.Stack()))
}
}()