feat(logging): deepen coordinator and core logging (NCS-72)
Build & Test (NowChessSystems) TeamCity build failed

Coordinator: InstanceRegistry logs instance join/update/dead/remove;
CoordinatorGrpcServer logs new stream + first heartbeat per instance;
CoreGrpcClient logs channel open/evict and RPC success counts.

Core: GameResource replaces println with logger; RedisGameRegistry
logs store/Redis-load/DB-load and surfaces silent failures;
CoordinatorServiceHandler logs inbound gRPC commands; IoGrpcClientWrapper
and RuleSetGrpcAdapter wrap gRPC calls with WARN on failure.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-05-02 17:25:51 +02:00
parent b3aab9efd5
commit 4850b23e19
12 changed files with 256 additions and 103 deletions
@@ -64,6 +64,6 @@ class BotEventResource:
): Response =
val playerId = Option(jwt.getSubject).getOrElse("")
log.debugf("Bot move %s in game %s by player %s", uci, gameId, playerId)
val moveMsg = s"""{"type":"MOVE","uci":"$uci","playerId":"$playerId"}"""
val moveMsg = s"""{"type":"MOVE","uci":"$uci","playerId":"$playerId"}"""
redis.pubsub(classOf[String]).publish(s"${redisConfig.prefix}:game:$gameId:c2s", moveMsg)
Response.ok().build()