debug logging tweak