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

Clemens Kolbitsch kolbitsch at lastline.com
Tue Apr 8 09:09:33 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)




On Mon, Apr 7, 2014 at 11:31 PM, Roberto De Ioris <roberto at unbit.it> wrote:

>
> > Hi!
> >
> > create_app is called within the wsgi file (that is, immediately)
> >
> > -Clemens
>
>
> can you post the entry point function ? the one where you call create_app()
>
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>



-- 
Clemens Kolbitsch
Security Researcher
kolbitsch at lastline.com
Mobile +1 (206) 356-7745
Land +1 (805) 456-7076

Lastline, Inc.
6950 Hollister Avenue, Suite 101
Goleta, CA 93117

www.lastline.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20140408/1d55e628/attachment.html>


More information about the uWSGI mailing list