Upgrade the server stop log to warning

pull/22482/head
Lidi Zheng 5 years ago
parent 79497f8059
commit b5b47ce7c7
  1. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi

@ -494,7 +494,7 @@ async def _handle_exceptions(RPCState rpc_state, object rpc_coro, object loop):
except asyncio.CancelledError:
_LOGGER.debug('RPC cancelled for servicer method [%s]', _decode(rpc_state.method()))
except _ServerStoppedError:
_LOGGER.debug('Aborting RPC due to server stop.')
_LOGGER.warning('Aborting method [%s] due to server stop.', _decode(rpc_state.method()))
except Exception as e:
_LOGGER.exception('Unexpected [%s] raised by servicer method [%s]' % (
type(e).__name__,

Loading…
Cancel
Save