Fix problem where multiple .write() log consumers resulted
in extra line breaks.  Specifically, using --log resulted in logging
with extra line breaks.
Merge pull request #1209 from qwcode/log_extra_lines

logs from --log have extra line breaks.