Log failed statement during commit