Some white space logging fixes; removing unnecessary file write