Hi Tim, On 8 June 2015 at 12:58, Tim Tisdall <[email protected]> wrote:
> I was reading how the default for python is to hide DeprecationWarning > messages. For development, I'd like to make sure I see any DeprecationWarning > that come up, but I don't seem to see any similar option in uwsgi. Can > anyone tell me if it's on or off by default and if there's a way to change > that setting? > If I understood the question correctly you want to hide DeprecationWarnings from your application in uWSGI? As far as I can see there is nothing uWSGI specific here. You use the same mechanism as you would use hiding DeprecationWarnings in any Python application. uWSGI and WSGI generally knows very little about what's going inside the application and it is left for the application vendor to configure logging in a way they wish. Please note that in Python DeprecationWarning and Python logging configurations have some overlapping functionality and you might need to poke both to get the desired effect. Some examples of turning of DeprecationWarnings in Python: https://bitbucket.org/miohtama/cryptoassets/src/bf2c3affa5528c6e96bfcc96b0caf4b0c9a9ec27/cryptoassets/core/tests/testwarnings.py?at=master Cheers, MIkko > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > -- Mikko Ohtamaa http://opensourcehacker.com http://twitter.com/moo9000
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
