Another attempt at enabling error logging