clean up logging messages