From 1d4d473048c004a949bedfafe46f5980874d7488 Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Fri, 7 Aug 2020 20:04:07 -0700 Subject: [PATCH] Update README --- README.md | 2 +- app/controllers/HomeController.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 40edc8f..448bb6a 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ These correspond to the honeycomb appender in `conf/logback.xml` Assuming you have sbt and java installed: -```scala +``` sbt run ``` diff --git a/app/controllers/HomeController.scala b/app/controllers/HomeController.scala index f05aa86..f0f40d7 100644 --- a/app/controllers/HomeController.scala +++ b/app/controllers/HomeController.scala @@ -33,7 +33,7 @@ class HomeController @Inject() (val controllerComponents: ControllerComponents) def index(): Action[AnyContent] = Action { implicit request: Request[AnyContent] => implicit val logger: Logger = getLogger(request) - val traceLogger = logger.onCondition(traceCondition).withMarker(tracerMarker) + val traceLogger = logger.withCondition(traceCondition).withMarker(tracerMarker) traceLogger.trace { log => log(st"The query string contains ${bobj("queryString" -> request.queryString)}") }