-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Description
Is your feature request related to a problem? Please describe.
We're currently using restify for some projects, and it relies on some deprecated functionality in Node (we don't use the bits that are deprecated, but they're still loaded). There is an issue on their side of the situation to remove the deprecated usage.
However, this results in a large number of deprecation notices in our logs that are noise, as we know about the deprecation and are aware that it doesn't impact what we're doing. We have the option to suppress all deprecation warnings with --no-deprecation
, but this could cause us to miss other deprecations down the road.
Describe the solution you'd like
It'd be great if there was a way to only suppress specific warnings. Something as simple as --no-warnings=DEP0111
(Edit: This was originally suggested as --ignore-deprecation
, but per 1, 2 & 3 I agree it makes sense to have a generic flag for all warnings)
Describe alternatives you've considered
There is the option to suppress all deprecation warnings with --no-deprecation
, but as mentioned this could lead to us missing other deprecations that do impact us.