clean up logging line endings