aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/controller.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-07-16 10:00:34 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-07-16 10:19:06 +1200
commit5f23d4f5ca49a3f6cfbcfd9f4e444150a25844b0 (patch)
tree8050cfc0a99a383b82fe3e423c9fc3e2ad43b44c /mitmproxy/controller.py
parent5a60f32c5510610935af1549022b3f7948002721 (diff)
downloadmitmproxy-5f23d4f5ca49a3f6cfbcfd9f4e444150a25844b0.tar.gz
mitmproxy-5f23d4f5ca49a3f6cfbcfd9f4e444150a25844b0.tar.bz2
mitmproxy-5f23d4f5ca49a3f6cfbcfd9f4e444150a25844b0.zip
add_event -> add_log throughout project
"Event" is terribly over-loaded in the project, and "log" is straight-forward and self-explanatory.
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r--mitmproxy/controller.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py
index 129691bb..54d75e6b 100644
--- a/mitmproxy/controller.py
+++ b/mitmproxy/controller.py
@@ -47,7 +47,7 @@ class Log(object):
self.master = master
def __call__(self, text, level="info"):
- self.master.add_event(text, level)
+ self.master.add_log(text, level)
def debug(self, txt):
self(txt, "debug")
@@ -89,7 +89,7 @@ class Master(object):
mitmproxy_ctx.master = None
mitmproxy_ctx.log = None
- def add_event(self, e, level="info"):
+ def add_log(self, e, level="info"):
"""
level: debug, info, warn, error
"""