Skip to content

Commit 2dc1837

Browse files
committed
add browser popup log.
1 parent d5bf601 commit 2dc1837

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

code/default/launcher/start.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ def main():
165165
if has_desktop and config.popup_webui == 1 and not restart_from_except and not no_popup:
166166
host_port = config.control_port
167167
import webbrowser
168-
webbrowser.open("http://localhost:%s/" % host_port)
168+
url = "http://localhost:%s/" % host_port
169+
xlog.debug("Popup %s on startup", url)
170+
webbrowser.open(url)
169171

170172
if has_desktop:
171173
download_modules.start_download()

code/default/launcher/win_tray.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ def on_disable_proxy(self, widget=None, data=None):
163163

164164
def show_control_web(self, widget=None, data=None):
165165
host_port = config.control_port
166-
webbrowser.open("http://127.0.0.1:%s/" % host_port)
166+
url = "http://127.0.0.1:%s/" % host_port
167+
xlog.debug("Popup %s by tray", url)
168+
webbrowser.open(url)
167169
ctypes.windll.user32.ShowWindow(ctypes.windll.kernel32.GetConsoleWindow(), 0)
168170

169171
def on_quit(self, widget=None, data=None):

0 commit comments

Comments
 (0)