in app/logic/AuditTrail.scala [108:118]
def logDbResultErrs(
attempt: Either[(String, Map[String, AttributeValue]), AuditLog]
): Either[(String, Map[String, AttributeValue]), AuditLog] = {
attempt.left.foreach { case (_, attrs) =>
val formattedAttrs = attrs.map { case (name, value) =>
s"$name: ${value.toString}"
} mkString ", "
logger.error(s"Failed to extract auditLog data $formattedAttrs")
}
attempt
}