clean up debug logging