diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-16 09:23:52 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-16 09:23:52 +1200 |
commit | 5a60f32c5510610935af1549022b3f7948002721 (patch) | |
tree | c3a33b820d01881474f68cde3293c473b95d0749 /mitmproxy/controller.py | |
parent | 532ae7dc4acfd6082eca92d0daf7608f94c46232 (diff) | |
download | mitmproxy-5a60f32c5510610935af1549022b3f7948002721.tar.gz mitmproxy-5a60f32c5510610935af1549022b3f7948002721.tar.bz2 mitmproxy-5a60f32c5510610935af1549022b3f7948002721.zip |
Fix log level handling
We have 4: error, warn, info and debug.
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r-- | mitmproxy/controller.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py index 503cdcd3..129691bb 100644 --- a/mitmproxy/controller.py +++ b/mitmproxy/controller.py @@ -89,6 +89,11 @@ class Master(object): mitmproxy_ctx.master = None mitmproxy_ctx.log = None + def add_event(self, e, level="info"): + """ + level: debug, info, warn, error + """ + def add_server(self, server): # We give a Channel to the server which can be used to communicate with the master channel = Channel(self.event_queue, self.should_exit) |