-
Notifications
You must be signed in to change notification settings - Fork 137
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
Exception in message logging kills application thread until reboot. #134
Comments
Good find! We'll take a look at this. |
I might need a little more information or a sample function. Using the following function, with def log_error(request, string_to_log):
logger.error('not such a standard string: %s', string_to_log)
return render(request, 'homepage/log_error.html') For reference, the entered url was something like |
I actually have not yet been able to track the source of the The It seems that either: refs: EDIT: I am re-thinking my response, noticed the exception is raised before getting to the |
I'm not quite sure how to get Edit: oh wait, if you use
|
A better example:
|
Replicated! Here we go:
Every log attempt after this keeps making the same error regardless of what you log. I'll start working on a fix. Thanks for the report! |
Nice! |
I think we should probably also store the formatted value in the history list instead of the record itself. That will likely result in cleaner code. |
@MazMachine PR up at #135 |
Should be solved with #135. I'll release 0.13.5 shortly. |
Awesome! Thanks @ezarowny |
Summary
We encountered a UnicodeDecodeError when the logger was interpolating a message. The corrupted message was stored in thread-local memory. Therefore every subsequent request to that thread that triggered a logging call would attempt to read that corrupted message and raise the same exception, effectivly taking down the application until manually rebooted.
Details
Steps
Versions:
Environment
Logging config
Culprit:
Line that triggers the exception:
pyrollbar/rollbar/logger.py
Line 164 in 047ddab
Line that pulls in corrupted message:
pyrollbar/rollbar/logger.py
Line 30 in 047ddab
Example Stacktrace (with some ommited data)
The text was updated successfully, but these errors were encountered: