aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/tools/web/master.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-07 09:37:58 +1200
committerGitHub <noreply@github.com>2018-04-07 09:37:58 +1200
commit5e2a1ec23c74e4b75278d36b65f74d565ce7d847 (patch)
treeb02a58edf7402c3f0f9a898a71d9e384bea4ecf2 /mitmproxy/tools/web/master.py
parent506ccc5693284a66ff186306509217282868e48b (diff)
parent9dcd15d350aa5e2ee2d6f7299d0183cabddeb992 (diff)
downloadmitmproxy-5e2a1ec23c74e4b75278d36b65f74d565ce7d847.tar.gz
mitmproxy-5e2a1ec23c74e4b75278d36b65f74d565ce7d847.tar.bz2
mitmproxy-5e2a1ec23c74e4b75278d36b65f74d565ce7d847.zip
Merge pull request #3035 from cortesi/aiosimpler
asyncio consolidation
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()