Skip to content

syslog: only save cfg.json when the debug flag really changes - #57

Merged
KrX3D merged 4 commits into
syslogfrom
fix/syslog-no-cfg-write-per-state
Dec 1, 2026
Merged

KrX3D merged 4 commits into
syslogfrom
fix/syslog-no-cfg-write-per-state

Conversation

@KrX3D

@KrX3D KrX3D commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner
  • deserializeState() set configNeedsWrite on every state request, even when it had no debug key, so every /json/state call rewrote cfg.json and wsec.json
  • Seen in the syslogs: both NanoWave lamps wrote their config 34 times a day with Autosave off
  • Now the config is only saved when debug is present and actually changes; the Debug button in the info panel works as before

Changelog

🤖 Generated with Claude Code

KrX3D and others added 4 commits November 19, 2026 18:00
deserializeState() set configNeedsWrite on every state request, even
without a "debug" key, so each /json/state call rewrote cfg.json and
wsec.json (34 times a day on the NanoWave lamps).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@KrX3D

KrX3D commented Nov 26, 2026

Copy link
Copy Markdown
Owner Author

localy merged

@KrX3D
KrX3D merged commit 86dd74a into syslog Dec 1, 2026
@KrX3D
KrX3D deleted the fix/syslog-no-cfg-write-per-state branch December 1, 2026 18:35
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