remove newline in logging