Skip to content

Commit

Permalink
log stats request
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio authored Oct 8, 2024
1 parent 89fe5b4 commit f528192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/Ld56C2Controller.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Ld56C2Controller(cc: ControllerComponents)(implicit system: ActorSystem, m
}

def stats() = Action.async { request =>

logger.info(s"${request.connection.remoteAddress} requested stats")
Future.successful(Ok(Json.toJson(gatherStats())))
}

Expand Down Expand Up @@ -239,4 +239,4 @@ class JoinHandler(out: ActorRef,
val inceptionTimeOrdering: Ordering[GameHost] = Ordering.by(_.inceptionTime)
actuallyViable.sorted(playerCountOrdering.reverse orElse inceptionTimeOrdering.reverse).headOption
}
}
}

0 comments on commit f528192

Please sign in to comment.