From 20874af51c2384e0bc4a3a8ef58a4033be180e59 Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Sat, 17 Aug 2019 14:11:48 -0400 Subject: [PATCH] Log internal errors from proto serialization/deserialization --- packages/grpc-native-core/src/server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/grpc-native-core/src/server.js b/packages/grpc-native-core/src/server.js index b79ee6fc..4b0aa3af 100644 --- a/packages/grpc-native-core/src/server.js +++ b/packages/grpc-native-core/src/server.js @@ -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;