Log lichess actions again
https://lichess.slack.com/archives/C4R6GQ6P7/p1594915488145600modlog-lichess
parent
fb83c521c6
commit
04bb778bb3
|
@ -14,7 +14,8 @@ case class Modlog(
|
|||
|
||||
def isLichess = mod == lila.user.User.lichessId
|
||||
|
||||
def notable = !isLichess && action != Modlog.terminateTournament
|
||||
def notable = action != Modlog.terminateTournament
|
||||
def notableSlack = notable && !isLichess
|
||||
|
||||
def showAction =
|
||||
action match {
|
||||
|
|
|
@ -244,7 +244,7 @@ final class ModlogApi(repo: ModlogRepo, userRepo: UserRepo, slackApi: lila.slack
|
|||
lila.mon.mod.log.create.increment()
|
||||
lila.log("mod").info(m.toString)
|
||||
m.notable ?? {
|
||||
coll.insert.one(m) >> slackMonitor(m)
|
||||
coll.insert.one(m) >> (m.notableSlack ?? slackMonitor(m))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue