Revert "In logging, replaced '\n' with a space + strip()"

This reverts commit 338bb3f2502c16afb727b6e7abcf67e558a34b32.