Skip to content

Commit

Permalink
fix http logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 21, 2021
1 parent 33fae62 commit 7683521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/HttpFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class HttpFilter(env: Env)(implicit val mat: Materializer) extends Filter
val statusCode = result.header.status
val client = HTTPRequest clientName req
if (env.net.isProd) httpMon.time(actionName, client, req.method, statusCode).record(reqTime)
else if (logRequests) logger.info(s"$statusCode $client $req ${req.method} $actionName ${reqTime}ms")
else if (logRequests) logger.info(s"$statusCode $client $req $actionName ${reqTime}ms")
}

private def redirectWrongDomain(req: RequestHeader): Option[Result] =
Expand Down

0 comments on commit 7683521

Please sign in to comment.