logger: fix missing endline issue