Tidy up logging output