How to display requests for flask app running under cherrypy using WSGI
Flask User <admin-3AnJ/iRYp+RWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
I have a flask app running under cherrypy. In the config I enabled
log.screen: True, still I cannot see any request logs or console messages
from flask app. When I run the same app using flask run I can see it.
Following is the configuration:
cherrypy.tree.graft(app, "/")
cherrypy.config.update({
'engine.autoreload_on': True,
'log.screen': True,
'server.socket_port': 5000,
'server.socket_host': '0.0.0.0',
})
cherrypy.engine.start()
cherrypy.engine.block()
If running using flask built-in server can see message like:
127.0.0.1 - - [13/Sep/2016 14:24:42] "POST /auth/api/v1/login HTTP/1.1" 404
-
But when running under cherrypy cannot see any request on flask app:
[13/Sep/2016:14:25:47] ENGINE Started monitor thread 'Autoreloader'.
[13/Sep/2016:14:25:47] ENGINE Started monitor thread '_TimeoutMonitor'.
[13/Sep/2016:14:25:47] ENGINE Serving on http://0.0.0.0:5000
[13/Sep/2016:14:25:47] ENGINE Bus STARTED
Am I doing something wrong here?
--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.