aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/master.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-04-04 14:46:29 +1200
committerAldo Cortesi <aldo@corte.si>2018-04-07 09:02:10 +1200
commit6a08ef465f3af6cb2044baf98279de1071538f5a (patch)
tree183c5821a7a5d4debd8bd779c5596c280c48cabc /mitmproxy/tools/web/master.py
parentea213782d8adaa21aa99f2de818172ee872cf3e9 (diff)
downloadmitmproxy-6a08ef465f3af6cb2044baf98279de1071538f5a.tar.gz
mitmproxy-6a08ef465f3af6cb2044baf98279de1071538f5a.tar.bz2
mitmproxy-6a08ef465f3af6cb2044baf98279de1071538f5a.zip
asyncio: remove master.add_log, in favor of a persistent log.Log instance
Diffstat (limited to 'mitmproxy/tools/web/master.py')
-rw-r--r--mitmproxy/tools/web/master.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py
index b7eddcce..575694c7 100644
--- a/mitmproxy/tools/web/master.py
+++ b/mitmproxy/tools/web/master.py
@@ -114,17 +114,15 @@ class WebMaster(master.Master):
iol.add_callback(self.start)
web_url = "http://{}:{}/".format(self.options.web_iface, self.options.web_port)
- self.add_log(
- "Web server listening at {}".format(web_url),
- "info"
+ self.log.info(
+ "Web server listening at {}".format(web_url),
)
if self.options.web_open_browser:
success = open_browser(web_url)
if not success:
- self.add_log(
+ self.log.info(
"No web browser found. Please open a browser and point it to {}".format(web_url),
- "info"
)
try:
iol.start()