logging caused failure in case of errors