Clean up log messages.