Fix accidental recording of extra newlines to logs