Fixed the production-only logging call.