Skip to content

Commit

Permalink
Merge pull request #111 from hmrc/SAR-914
Browse files Browse the repository at this point in the history
SAR-914 - Update to new platform libraries
  • Loading branch information
suyangyu authored Sep 5, 2017
2 parents 372b856 + 0e12601 commit 83f89a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/audit/Logging.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Logging @Inject()(application: Application,
""".stripMargin

private def splunkFunction(transactionName: String, detail: Map[String, String], auditType: String)(implicit hc: HeaderCarrier) = {
val loggingFunc: String => Unit = if (debugToWarn) Logger.warn else Logger.debug
val loggingFunc: String => Unit = if (debugToWarn) Logger.warn(_) else Logger.debug(_)
loggingFunc(Logging.splunkString + splunkToLogger(transactionName, detail, auditType))
sendDataEvent(
transactionName = transactionName,
Expand Down

0 comments on commit 83f89a3

Please sign in to comment.