Fixed an issue where the newlines causes logs to be misread.