log offender name in hold alerts
This commit is contained in:
parent
f3015f0275
commit
496d3abc51
|
@ -105,7 +105,9 @@ private[round] final class Round(
|
||||||
|
|
||||||
case HoldAlert(playerId, mean, sd) => handle(playerId) { pov =>
|
case HoldAlert(playerId, mean, sd) => handle(playerId) { pov =>
|
||||||
!pov.player.hasHoldAlert ?? {
|
!pov.player.hasHoldAlert ?? {
|
||||||
play.api.Logger("hold").info(s"http://lichess.org/${pov.gameId}/${pov.color.name}#${pov.game.turns} mean: $mean SD: $sd")
|
play.api.Logger("hold").info(
|
||||||
|
s"http://lichess.org/${pov.gameId}/${pov.color.name}#${pov.game.turns} ${pov.player.userId | "anon"} mean: $mean SD: $sd"
|
||||||
|
)
|
||||||
GameRepo.setHoldAlert(pov, mean, sd) inject List[Event]()
|
GameRepo.setHoldAlert(pov, mean, sd) inject List[Event]()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue