Clean up debug logging