strip log and warn in production build.