mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Debugger: don't persist log.channel.set changes to the saved config
log.channel.set is meant for temporary, session-only diagnostic tweaks (e.g. quieting a noisy channel while investigating something over the WebSocket debugger). It was going through the same SetLogLevel/SetEnabled calls the UI settings use, so a normal app exit would persist whatever channels/levels the debugger last left set, silently overwriting the user's real saved log preferences for future runs - discovered when a later session's default logging looked "off" for no apparent reason. LogManager now tracks whether the debugger has touched channel config this run and skips SaveConfig() entirely if so, leaving whatever's already on disk untouched.
This commit is contained in:
@@ -119,6 +119,9 @@ void WebSocketLogChannelSet(DebuggerRequest &req) {
|
||||
if (channelName != LogManager::GetLogTypeName(type))
|
||||
continue;
|
||||
|
||||
// These are meant as temporary, session-only diagnostic tweaks - make sure they never
|
||||
// get written back over the user's actual saved log settings.
|
||||
g_logManager.NotifyChannelsChangedByDebugger();
|
||||
if (hasLevel)
|
||||
g_logManager.SetLogLevel(type, level);
|
||||
if (hasEnabled)
|
||||
|
||||
Reference in New Issue
Block a user