Error logging tweak