Merge pull request #22482 from lidizheng/aio-no-info

[Aio] Eliminate info level logs
pull/22487/head
Lidi Zheng 5 years ago committed by GitHub
commit 1e6c9b4c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi
  2. 2
      src/python/grpcio/grpc/_cython/_cygrpc/aio/server.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:

@ -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.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