Skip to content

Commit

Permalink
fix http.error monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 22, 2019
1 parent 1f5f5c5 commit b628e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/ErrorHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class ErrorHandler(
Future {
val actionName = HTTPRequest actionName req
val client = HTTPRequest clientName req
lila.mon.http.error(actionName, client, req.method, 500)
lila.mon.http.error(actionName, client, req.method, 500).increment()
lila.log("http").error(s"ERROR 500 $actionName", exception)
if (canShowErrorPage(req))
InternalServerError(views.html.base.errorPage(exception) {
Expand Down

0 comments on commit b628e50

Please sign in to comment.