[uWSGI] Possible setup race condition between uwsgi-plugin-python and python-flask

Roberto De Ioris roberto at unbit.it
Tue Apr 8 12:13:00 CEST 2014


> import ConfigParser
> import logging
>
> import myapp
>
>
> CONFIG_FILE = "/etc/myapp/myapp.ini"
>
> config_parser = ConfigParser.ConfigParser()
> config_file = open(CONFIG_FILE)
> config_parser.readfp(config_file,CONFIG_FILE)
>
> log = ...
> application = myapp.create_app(CONFIG_FILE, None, log, strict=True)
>
> application.logger.setLevel(logging.DEBUG)
> for handler in log.logger().handlers:
>     application.logger.addHandler(handler)
>



I see nothing strange in it, but once you get 404 you continue to get it
or it get fixed after a bunch of requests ?



-- 
Roberto De Ioris
http://unbit.it


More information about the uWSGI mailing list