Log errors in production mode.
Port wh* to arv-*.