Cleanup log messages.