Commit Graph

9 Commits

Author SHA1 Message Date
5e9f9bfb13 Backend logging: stderr + configurable rotating file
Add configure_logging() (main.py): always logs to stderr, plus a rotating
file when PIRATS_LOG_FILE is set; level from PIRATS_LOG_LEVEL (default INFO).
Called from both the CLI entrypoint and the app lifespan (idempotent), which
also logs startup/migration/shutdown.

Targeted server-side events for ops/debugging (not every game event): game
created, player joined, player removed (kick/leave), game ended.

NixOS service: new logFile (/var/log/pirats/pirats.log) and logLevel options,
wired to the env vars; LogsDirectory=pirats makes the path writable under the
sandboxed DynamicUser. README documents the env vars/options.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 15:42:06 -07:00
3395b127b4 Dev mode revamp 2026-06-12 11:50:34 -07:00
96eeb442fd Database migrations 2026-06-12 07:14:50 -07:00
0535c68647 Fix flake with new hash 2026-06-12 07:01:55 -07:00
ba6bf35579 Websockets instead of polling 2026-06-12 06:19:22 -07:00
58a7e4d4f1 Switch to Svelte 2026-06-11 14:39:41 -07:00
e312d8efc1 Add httpx dependency 2026-06-09 19:15:20 -07:00
274ae3fb07 Remove flake-utils dependency 2026-06-09 16:41:23 -07:00
82ece0de10 Initial checkin 2026-06-09 16:06:44 -07:00