Merge pull request #23467 from lidizheng/dealloc-message

Further reduce the spam log by doing nothing if GC has error
pull/23473/head
Lidi Zheng 5 years ago committed by GitHub
commit 76d625da12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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):

Loading…
Cancel
Save