You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use multiple decorators in my class before method.I want to write the detail to the log file when the request is blocked,Like "xxx IP is blocked" or "xx user is blocked " .But I have no idea how to know which decorator the API triggers in the method。
The text was updated successfully, but these errors were encountered:
Right now, it's not possible. I'm going to rename this issue to capture the request. (It's come up before, so I actually thought there was one already.)
jsocol
changed the title
how to log the detail when I use multiple decorators
Provide information about which specific rate limits were counted
Aug 2, 2019
Hi @jsocol, I created a pr for this issue.
I implemented it like this, user sends an object of RatelimitLogger class which takes name of the logger defined in settings, level and the format of the message to log.
When rate is limited and logger object is sent to the ratelimit decorator then we log them.
I use multiple decorators in my class before method.I want to write the detail to the log file when the request is blocked,Like "xxx IP is blocked" or "xx user is blocked " .But I have no idea how to know which decorator the API triggers in the method。
The text was updated successfully, but these errors were encountered: