1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +02:00

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

@@ -98,7 +98,7 @@ func (r *rpcClient) call(ctx context.Context, address string, req Request, resp
go func() {
defer func() {
if r := recover(); r != nil {
ch <- errors.InternalServerError("go.micro.client", "request error")
ch <- errors.InternalServerError("go.micro.client", fmt.Sprintf("panic recovered: %v", r))
}
}()