milb upcoming game debug logging

This commit is contained in:
Chuck
2025-08-10 18:26:25 -05:00
parent 10c1342bdb
commit edce5fae85
4 changed files with 23 additions and 12 deletions

View File

@@ -641,6 +641,11 @@ class DisplayManager:
except Exception:
# Fallback to direct save if replace not supported
self.image.save(self._snapshot_path, format='PNG')
# Try to make the snapshot world-readable so the web UI can read it regardless of user
try:
os.chmod(self._snapshot_path, 0o644)
except Exception:
pass
self._last_snapshot_ts = now
except Exception as e:
# Snapshot failures should never break display; log at debug to avoid noise