Tidy up debug log