in api/src/main/scala/com/gu/core/utils/ErrorHandling.scala [45:48]
def logIfError[A](msg: String, result: Either[Error, A]): Either[Error, A] = { result.left.foreach(e => logError(msg = msg, e = e)) result }