diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2018-04-04 14:46:29 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2018-04-07 09:02:10 +1200 |
commit | 6a08ef465f3af6cb2044baf98279de1071538f5a (patch) | |
tree | 183c5821a7a5d4debd8bd779c5596c280c48cabc /mitmproxy/tools/web/master.py | |
parent | ea213782d8adaa21aa99f2de818172ee872cf3e9 (diff) | |
download | mitmproxy-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.py | 8 |
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() |