don't log round client error stacktraces

pull/4818/head
Thibault Duplessis 2018-12-31 14:34:11 +08:00
parent ea63e11bf4
commit 935a548cb6
1 changed files with 2 additions and 2 deletions

View File

@ -273,10 +273,10 @@ private[round] final class Round(
private[this] def errorHandler(name: String): PartialFunction[Throwable, Unit] = {
case e: ClientError =>
logger.info(s"Round client error $name", e)
logger.info(s"Round client error $name: ${e.getMessage}")
lila.mon.round.error.client()
case e: FishnetError =>
logger.info(s"Round fishnet error $name", e)
logger.info(s"Round fishnet error $name: ${e.getMessage}")
lila.mon.round.error.fishnet()
case e: Exception => logger.warn(s"$name: ${e.getMessage}")
}