Skip to content

Commit

Permalink
Add deprecation warning for withAb option
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnicholls committed Jul 29, 2021
1 parent 2b369cb commit 93640da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.js
Expand Up @@ -24,6 +24,7 @@ const consentMiddleware = require('./src/middleware/consent');
const metrics = require('next-metrics');
const serviceMetrics = require('./src/lib/service-metrics');
const raven = require('@financial-times/n-raven');
const nLogger = require('@financial-times/n-logger').default;

// utils
const healthChecks = require('./src/lib/health-checks');
Expand Down Expand Up @@ -64,6 +65,13 @@ const getAppContainer = (options) => {
);
}

if (options.withAb) {
nLogger.warn({
event: 'WITHAB_OPTION_DEPRECATED',
message: 'The \'withAb\' option is deprecated and no longer supported by n-express or n-flags-client'
});
}

const meta = guessAppDetails(options);

/** @type {Promise<any>[]} */
Expand Down

0 comments on commit 93640da

Please sign in to comment.