File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -606,7 +606,10 @@ process.on('warning', (warning) => {
606606
607607By default, Node.js will print process warnings to ` stderr ` . The ` --no-warnings `
608608command-line option can be used to suppress the default console output but the
609- ` 'warning' ` event will still be emitted by the ` process ` object.
609+ ` 'warning' ` event will still be emitted by the ` process ` object. Currently, it
610+ is not possible to suppress specific warning types other than deprecation
611+ warnings. To suppress deprecation warnings, check out the [ ` --no-deprecation ` ] [ ]
612+ flag.
610613
611614The following example illustrates the warning that is printed to ` stderr ` when
612615too many listeners have been added to an event:
@@ -3954,6 +3957,7 @@ cases:
39543957[` ' message' ` ]: child_process.md#event-message
39553958[` ' uncaughtException' ` ]: #event-uncaughtexception
39563959[` -- experimental- permission` ]: cli.md#--experimental-permission
3960+ [` -- no- deprecation` ]: cli.md#--no-deprecation
39573961[` -- unhandled- rejections` ]: cli.md#--unhandled-rejectionsmode
39583962[` Buffer` ]: buffer.md
39593963[` ChildProcess .disconnect ()` ]: child_process.md#subprocessdisconnect
You can’t perform that action at this time.
0 commit comments