async_retrying icon indicating copy to clipboard operation
async_retrying copied to clipboard

add a params to close logging

Open bestgopher opened this issue 6 years ago • 4 comments

I dont want to get logging massage, could you add a params like log=False to close logger.warning msg。 if log: logger.warning( exc.__class__.__name__ + ' -> Attempts (%(attempt)d) are over for %(fn)r', # noqa context, exc_info=exc,

bestgopher avatar Jun 27 '19 08:06 bestgopher

                    `if log:
                        logger.warning(
                            exc.__class__.__name__ + ' -> Attempts (%(attempt)d) are over for %(fn)r',  # noqa
                            context,
                            exc_info=exc,
                        )`

bestgopher avatar Jun 27 '19 08:06 bestgopher

what about to setup logging config and set logging.LEVEL for async_retrying to logging.ERROR?

hellysmile avatar Jun 27 '19 13:06 hellysmile

Yeah! That is great!

bestgopher avatar Jun 29 '19 09:06 bestgopher

what about to setup logging config and set logging.LEVEL for async_retrying to logging.ERROR?

Yeah! That is great!

bestgopher avatar Jun 29 '19 09:06 bestgopher