aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/controller.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-19 14:14:59 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-19 14:14:59 +1300
commit966418725b204491d2c40358c08bf56564307412 (patch)
tree3dfee4aae5dadcc11a200c0300715d65714e0a3e /mitmproxy/controller.py
parent83dbefb224c0b0d77b226f80e37b5b3d6bebb703 (diff)
downloadmitmproxy-966418725b204491d2c40358c08bf56564307412.tar.gz
mitmproxy-966418725b204491d2c40358c08bf56564307412.tar.bz2
mitmproxy-966418725b204491d2c40358c08bf56564307412.zip
controller.Log -> log.Log
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r--mitmproxy/controller.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py
index 27fb4a0c..c5e125ce 100644
--- a/mitmproxy/controller.py
+++ b/mitmproxy/controller.py
@@ -3,47 +3,6 @@ import queue
from mitmproxy import exceptions
-class LogEntry:
- def __init__(self, msg, level):
- self.msg = msg
- self.level = level
-
-
-class Log:
- """
- The central logger, exposed to scripts as mitmproxy.ctx.log.
- """
- def __init__(self, master):
- self.master = master
-
- def debug(self, txt):
- """
- Log with level debug.
- """
- self(txt, "debug")
-
- def info(self, txt):
- """
- Log with level info.
- """
- self(txt, "info")
-
- def warn(self, txt):
- """
- Log with level warn.
- """
- self(txt, "warn")
-
- def error(self, txt):
- """
- Log with level error.
- """
- self(txt, "error")
-
- def __call__(self, text, level="info"):
- self.master.add_log(text, level)
-
-
class Channel:
"""
The only way for the proxy server to communicate with the master