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

Lock acquisition is logged as INFO #112

Open
nschagen opened this issue Nov 29, 2023 · 1 comment
Open

Lock acquisition is logged as INFO #112

nschagen opened this issue Nov 29, 2023 · 1 comment

Comments

@nschagen
Copy link

Hello,

Small question: I noticed that the lock acquired log message is logged as info while the rest is logged as debug.

https://github.com/ionelmc/python-redis-lock/blob/master/src/redis_lock/__init__.py#L236

Is that intentional? I do see a lot of lock acquisitions in my log and would like to filter them out. What kind of way would you suggest to suppress them?

Thank you

@ionelmc
Copy link
Owner

ionelmc commented Dec 13, 2023

Probably something like this in your logging config? Assuming you use some dict config style:

    "loggers": {
        "redis_lock.acquire": {
            "level": "WARNING",
        },
    }

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