Fix some logging typos and a comment typo.