aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/Internal
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-09-04 13:07:49 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-09-04 13:07:49 -0700
commit113f5bd2e818859ee7b1b5bf50b96d9d559566a2 (patch)
tree4154a13051b9c20dd976360e01dab7979db13d56 /src/csharp/Grpc.Core/Internal
parent4c0d540fb6545db5a347bf9e45b8bf31ea499986 (diff)
exception handling in native callback
Diffstat (limited to 'src/csharp/Grpc.Core/Internal')
-rw-r--r--src/csharp/Grpc.Core/Internal/NativeMetadataCredentialsPlugin.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core/Internal/NativeMetadataCredentialsPlugin.cs b/src/csharp/Grpc.Core/Internal/NativeMetadataCredentialsPlugin.cs
index 36e8cbbf31..faeb51e6f7 100644
--- a/src/csharp/Grpc.Core/Internal/NativeMetadataCredentialsPlugin.cs
+++ b/src/csharp/Grpc.Core/Internal/NativeMetadataCredentialsPlugin.cs
@@ -68,9 +68,8 @@ namespace Grpc.Core.Internal
}
catch (Exception e)
{
- var detail = GetMetadataExceptionStatusMsg + " " + e.ToString();
- Native.grpcsharp_metadata_credentials_notify_from_plugin(callbackPtr, userDataPtr, MetadataArraySafeHandle.Create(Metadata.Empty), StatusCode.Unknown, detail);
- Logger.Error(e, GetMetadataExceptionLogMsg);
+ // eat the exception, we must not throw when inside callback from native code.
+ Logger.Error(e, "Exception occurred while invoking native metadata interceptor handler.");
}
}