remove extra newline from logs