Fix log statements causing unittest errors.