Further reduce the spam log by doing nothing if GC has error

pull/23467/head
Lidi Zheng 5 years ago
parent 8f3bd10c03
commit ddbf4b6f9f
  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