There are two places where log_debug doesn't have a newline (lines 265, 391).  Maybe only do it automatically for log_normal?