Merge pull request #24718 from lidizheng/stop-ctrl-c-spam

Stop the spamming log generated by ctrl-c for AsyncIO server
pull/24726/head
Lidi Zheng 4 years ago committed by GitHub
commit 4dab5d3deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi

@ -884,6 +884,8 @@ cdef class AioServer:
def _serving_task_crash_handler(self, object task):
"""Shutdown the server immediately if unexpectedly exited."""
if task.cancelled():
return
if task.exception() is None:
return
if self._status != AIO_SERVER_STATUS_STOPPING:

Loading…
Cancel
Save