Fix a bug where trace messages were outputting newlines even in non-verbose mode.