Log internal errors from proto serialization/deserialization

This commit is contained in:
Kelly Campbell 2019-08-17 14:11:48 -04:00
parent d2d66064e7
commit 20874af51c
1 changed files with 3 additions and 0 deletions

View File

@ -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;