From ddbf4b6f9fb578344e5418505a120a87bbb9b7ce Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Mon, 13 Jul 2020 11:18:46 -0700 Subject: [PATCH] Further reduce the spam log by doing nothing if GC has error --- src/python/grpcio/grpc/_channel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py index eff5d1a89c6..37071909c8c 100644 --- a/src/python/grpcio/grpc/_channel.py +++ b/src/python/grpcio/grpc/_channel.py @@ -1126,9 +1126,8 @@ class _ChannelCallState(object): try: self.channel.close(cygrpc.StatusCode.cancelled, 'Channel deallocated!') - except (TypeError, AttributeError) as error: - logging.debug('Channel deallocation failed with: <%s>: %s', - type(error), str(error)) + except (TypeError, AttributeError): + pass def _run_channel_spin_thread(state):