Merge pull request #997 from kellycampbell/log-internal-errs

Log internal errors from proto serialization/deserialization
This commit is contained in:
Michael Lumish 2019-09-06 14:11:56 -07:00 committed by GitHub
commit e1e0735468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;