mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Log the debugger port at NOTICE, remove fprintf logging of the port
This commit is contained in:
1 parent
afb2eb0623
commit
d94a40931e
1 file changed
+3
-10
+3
-10
@@ -819,18 +819,11 @@ static void WebServerThread() {
|
||||
RegisterServer(http->Port());
|
||||
double lastRegister = time_now_d();
|
||||
|
||||
INFO_LOG(Log::HTTP, "Entering web server loop. Listening on port %d", g_Config.iRemoteISOPort);
|
||||
// NOTICE rather than INFO on purpose: with --debugger=0 the port is picked for us, and this
|
||||
// line is the only way a client can find out which one it got.
|
||||
NOTICE_LOG(Log::HTTP, "Entering web server loop. Listening on port %d", g_Config.iRemoteISOPort);
|
||||
|
||||
if (serverFlags & WebServerFlags::DEBUGGER) {
|
||||
// And say it once more straight to stderr, outside the log system entirely. A tool that
|
||||
// launches us (Tools/wsdbg --launch) has to learn the port from our output before it can
|
||||
// connect to anything, so that one line must not be losable to a log level, a disabled
|
||||
// channel, or a build that never installs a log output at all.
|
||||
#if !defined(__LIBRETRO__)
|
||||
fprintf(stderr, "Debugger listening on port %d\n", g_Config.iRemoteISOPort);
|
||||
fflush(stderr);
|
||||
#endif
|
||||
|
||||
g_OSD.Show(OSDType::MESSAGE_SUCCESS, "Debugger web server running on port " + std::to_string(g_Config.iRemoteISOPort), 5.0f, "debugger");
|
||||
g_OSD.SetClickCallback("debugger", []() {
|
||||
OpenWebDebugger();
|
||||
|
||||
Reference in new issue
Block a user