Fixed missing \n in log messages.

(cherry picked from commit 07448cb70f13265dc3b1bd1ff12b1996361589a7)