From 79497f8059dfe6106f1d050a392b01072245b597 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 25 Mar 2020 15:09:21 -0700 Subject: [PATCH 1/2] Downgrade info logs to debug --- src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi | 2 +- src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi index 33959c44a14..4231ca7d8ab 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi @@ -77,7 +77,7 @@ cdef _actual_aio_initialization(): _GRPC_ASYNCIO_ENGINE, _default_asyncio_engine(), ) - _LOGGER.info('Using %s as I/O engine', _global_aio_state.engine) + _LOGGER.debug('Using %s as I/O engine', _global_aio_state.engine) # Initializes the process-level state accordingly if _global_aio_state.engine is AsyncIOEngine.CUSTOM_IO_MANAGER: diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi index 59ba5021815..b538bd9badc 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi +++ b/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.info('Aborting RPC due to server stop.') + _LOGGER.debug('Aborting RPC due to server stop.') except Exception as e: _LOGGER.exception('Unexpected [%s] raised by servicer method [%s]' % ( type(e).__name__, From b5b47ce7c764bf716a1ea0eb3acc661620c3e415 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 25 Mar 2020 16:00:50 -0700 Subject: [PATCH 2/2] Upgrade the server stop log to warning --- src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi index b538bd9badc..668ecab0a85 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi +++ b/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__,