-
Notifications
You must be signed in to change notification settings - Fork 695
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
Python module cache exception doesn't get formatted right #134
Comments
Test case: cachetest.py
command line
Changing printed values from Related docs:
from python docs.
|
the only version-independent solution is see is not reporting the size in the exception... some other solution ? |
Not from me. And |
We could always format those messages before passing them to PyErr_Format() |
For the caching framework we could safely use %lu as long represent the maximum size of mappable memory (so you cannot have values bigger than 4G on 32bit). I will make a patch for stable branch soon |
I close this as error formatting got moved to simple uwsgi_log with the magic api |
While testing some functionality of the cache on IRC, I noticed that the exception for "cache key too large" isn't very helpful:
This is on 1.4.3.
The text was updated successfully, but these errors were encountered: