aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-22 15:58:25 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-22 15:58:25 +1200
commit5dee4210eb889eab6053cca353a7d9a7a420305d (patch)
tree3ef6f900d7e69a3b9ee2faa4b345ce26dce4557e /libpathod/app.py
parent99cb0808abfa3bd5bbc8d19c10756641c032dc48 (diff)
downloadmitmproxy-5dee4210eb889eab6053cca353a7d9a7a420305d.tar.gz
mitmproxy-5dee4210eb889eab6053cca353a7d9a7a420305d.tar.bz2
mitmproxy-5dee4210eb889eab6053cca353a7d9a7a420305d.zip
pathod: flag to set debugging for web interface dev
Diffstat (limited to 'libpathod/app.py')
-rw-r--r--libpathod/app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index c3ce9991..10f7c148 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -9,9 +9,9 @@ from netlib import http_uastrings
logging.basicConfig(level="DEBUG")
-def make_app(noapi):
+def make_app(noapi, debug):
app = Flask(__name__)
- # app.debug = True
+ app.debug = debug
if not noapi:
@app.route('/api/info')