cdi: strip newline off the end of cdi log lines