mirror of https://github.com/grpc/grpc-node.git
Merge pull request #997 from kellycampbell/log-internal-errs
Log internal errors from proto serialization/deserialization
This commit is contained in:
commit
e1e0735468
|
@ -55,6 +55,9 @@ function handleError(call, error) {
|
|||
if (error.hasOwnProperty('details')) {
|
||||
status.details = error.details;
|
||||
}
|
||||
if (status.code == constants.status.INTERNAL) {
|
||||
common.log(constants.logVerbosity.ERROR, error);
|
||||
}
|
||||
}
|
||||
if (error.hasOwnProperty('metadata')) {
|
||||
statusMetadata = error.metadata;
|
||||
|
|
Loading…
Reference in New Issue