Fix logging snippets.