2021-12-03 17:58:48 +01:00

21 lines
738 B
JavaScript

'use strict';
function deprecationWarnings(server) {
// deprecation for domains and next.ifError
if (server.handleUncaughtExceptions === true) {
server.log.warn(
[
'DEPRECATION WARNING: Due to deprecation of the domain module',
'in node.js, all features in restify that depend on it have',
'been deprecated as well.',
'This includes `handleUncaughtExceptions` and',
'`next.ifError()`. They will continue to work in 5.x, but',
'consider them unsupported and likely to be removed',
'from future versions of restify.'
].join(' ')
);
}
}
module.exports = deprecationWarnings;