Rewrite some log messages.