Tidy up the debug() logging