Skip to content

fix(gameserver): promote unregister summary to Info (#122) - #129

Merged
thesprockee merged 1 commit into
mainfrom
issue-122
Oct 6, 2026
Merged

thesprockee merged 1 commit into
mainfrom
issue-122

Conversation

@thesprockee

Copy link
Copy Markdown
Member

Summary

Closes #122. Both the owner-recorded line (gameserver.cpp:944) and "Unregistered %zu broadcaster callbacks" (:1125) were Debug-only, which isn't on by default — the only reason #117's broadcasterOwner-dropped bug (it only cleared a local registry struct without ever reaching the real BroadcasterUnlisten) went a full week unnoticed in production.

Fix

Promoted the unregister-time log to Info, folding in both owner (recorded at registration) and liveOwner (read back at unregister time): a mismatch between them, or removed==0 with a non-null owner, is exactly the #117 signature — now visible without enabling Debug logging. Left the registration-time line at Debug since the unregister-time line now carries the same owner value plus the actual outcome, which is the moment that matters operationally.

Confirmed no other call site or test in the repo references either log line by exact text (grepped .cpp/.py/.go).

Test plan

  • just verify green (mingw-release), 138 tests
  • Grep confirms no other code depends on the exact log strings

🤖 Generated with Claude Code

…ressions surface in production logs (#122)

Both the owner-recorded line (gameserver.cpp:944) and the "Unregistered
%zu broadcaster callbacks" line (:1125) were Debug, which isn't on by
default — the only reason #117's broadcasterOwner-dropped bug went a
week unnoticed in production. Promoted the unregister-time line to Info
and folded in owner/liveOwner: #117's signature was recordedOwner
reading null while liveOwner was a real pointer, so a mismatch between
the two now surfaces without enabling Debug logging. Left the
registration-time line at Debug since the unregister-time summary now
carries the same owner value plus the actual outcome, which is the
actionable moment.

No other call site or test references either log string by exact text
(checked across the whole tree, not just .cpp/.py/.go).

Co-Authored-By: nevr-runtime <agents@sprock.io>
@thesprockee
thesprockee merged commit 99445bc into main Oct 6, 2026
1 check passed
@thesprockee
thesprockee deleted the issue-122 branch October 6, 2026 04:48
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.

callback_unregistration/gameserver: owner-recorded and unregister-count log lines are Debug, which let #117 go unnoticed for a week

1 participant