removing extra new-lines from log output