Skip to content

Log locked EU5 saves at debug level in watch - #63

Merged
nickbabcock merged 1 commit into
masterfrom
eu5-watch-quiet-locked-save
Oct 13, 2026
Merged

nickbabcock merged 1 commit into
masterfrom
eu5-watch-quiet-locked-save

Conversation

@nickbabcock

Copy link
Copy Markdown
Contributor

While the game writes a save, it locks the save. The watch command tried to read the save during the write and logged an error, but a later event read the complete save. Thus, each autosave caused an error that the user did not have to fix.

Open the save in the watch loop and log a failure to open at debug level. Keep a failure to parse at error level, because a save that opens is complete. Show the full error chain for a failure to parse.

While the game writes a save, it locks the save. The watch command
tried to read the save during the write and logged an error, but a
later event read the complete save. Thus, each autosave caused an error
that the user did not have to fix.

Open the save in the watch loop and log a failure to open at debug
level. Keep a failure to parse at error level, because a save that
opens is complete. Show the full error chain for a failure to parse.
@nickbabcock
nickbabcock merged commit f7bb967 into master Oct 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant