now this actually works when logging fails, you can see the failure logs;
need to invent tests for this.