don't log tournament terminations
parent
59e02b76aa
commit
12659b561a
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue