mirror of https://github.com/grpc/grpc-node.git
Log internal errors from proto serialization/deserialization
This commit is contained in:
parent
d2d66064e7
commit
20874af51c
|
@ -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