Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a params to close logging #16

Open
bestgopher opened this issue Jun 27, 2019 · 4 comments
Open

add a params to close logging #16

bestgopher opened this issue Jun 27, 2019 · 4 comments

Comments

@bestgopher
Copy link

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
Copy link
Author

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

@hellysmile
Copy link
Owner

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

@bestgopher
Copy link
Author

Yeah! That is great!

@bestgopher
Copy link
Author

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

Yeah! That is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants