Debug logging bulletproofing