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?