Fix newlines in logging.