Uh oh!
There was an error while loading. Please reload this page.
feat(confighttp): make the api/logs more elegant - #4688
Conversation
Implement log caching with atomic operations to avoid unnecessary file reads and ensure thread-safe access.
Yundi339
commented
Feb 10, 2026
To prevent indefinite memory growth, a setting should be added in the future to limit the buffer size (e.g., 1MB, 10MB, 50MB). This would not affect the local log files. For example, if set to 10MB, the system should only read the trailing 10MB of the file. |
ReenigneArcher
commented
Feb 10, 2026
Thanks for the PRs! For this one specifically, I think I want to get #4645 finished and merged first. |
ReenigneArcher
commented
Mar 9, 2026
@Yundi339 the previously mentioned PR was merged |
LizardByte-bot
commented
Aug 22, 2026
It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks! |
LizardByte-bot
commented
Sep 1, 2026
This PR was closed because it has been stalled for 10 days with no activity. |



Description
I think the log interface returns the full amount every time, which is an unreasonable mechanism.
Of course, I did consider using SSE, but it's not a good fit here. It would just introduce unnecessary complexity and over-engineering. So I tried to do these things.
Logs API improvements:
try_incremental_log_readto avoid getting the full logs every time.============
I know that modifying code related to file operations is an act that is prone to dangerous problems.
Therefore, I suggest that this PR should not be in a hurry to integrate, I will use it locally for a long time to see the stability.
BTW, I added log files to
sunshinesvc.cppon PC, so I could know when Sunshine.exe had a safe and unsafe restart.Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage