aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.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/pathod.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/pathod.py')
-rw-r--r--libpathod/pathod.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index 0c626777..7b3f74d1 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -289,7 +289,8 @@ class Pathod(tcp.TCPServer):
logreq=False,
logresp=False,
explain=False,
- hexdump=False
+ hexdump=False,
+ webdebug=False,
):
"""
addr: (address, port) tuple. If port is 0, a free port will be
@@ -317,7 +318,7 @@ class Pathod(tcp.TCPServer):
self.logresp, self.hexdump = logresp, hexdump
self.explain = explain
- self.app = app.make_app(noapi)
+ self.app = app.make_app(noapi, webdebug)
self.app.config["pathod"] = self
self.log = []
self.logid = 0
@@ -438,6 +439,7 @@ def main(args): # pragma: nocover
logresp = args.logresp,
hexdump = args.hexdump,
explain = args.explain,
+ webdebug = args.webdebug
)
except PathodError, v:
print >> sys.stderr, "Error: %s"%v