How do I make a bottle of printtrace when running through apache modwsgi?
When running Bottle as a standalone server, this is very easy to do:
from bottle import run, Bottle
run(app=app, host=config.get('bottle_host', 'localhost'), port=config.get('bottle_port', '8080'),
debug=config.get('debug', True), server=config.get('server_middleware', 'tornado'))
The problem is, with wsgi, I have to do this:
app = Bottle()
And the constructor Bottle
has no debug parameter. So what can I do to get the stack?
+3
source to share