don't log tournament terminations

prod-asset-fix2
Thibault Duplessis 2020-07-15 09:15:13 +02:00
parent 59e02b76aa
commit 12659b561a
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ case class Modlog(
def isLichess = mod == lila.user.User.lichessId
def notable = !isLichess && action != Modlog.terminateTournament
def showAction =
action match {
case Modlog.alt => "mark as alt"

View File

@ -243,7 +243,7 @@ final class ModlogApi(repo: ModlogRepo, userRepo: UserRepo, slackApi: lila.slack
private def add(m: Modlog): Funit = {
lila.mon.mod.log.create.increment()
lila.log("mod").info(m.toString)
!m.isLichess ?? {
m.notable ?? {
coll.insert.one(m) >> slackMonitor(m)
}
}