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 <[email protected]> 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
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
--
Clemens Kolbitsch
Security Researcher
[email protected]
Mobile +1 (206) 356-7745
Land +1 (805) 456-7076
Lastline, Inc.
6950 Hollister Avenue, Suite 101
Goleta, CA 93117
www.lastline.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi