Skip to content

Commit 402c17b

Browse files
shubham9411alexfernandez
authored andcommitted
doc: update documentation for node:process warning
PR-URL: nodejs#49517 Refs: nodejs#46862 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 71ad481 commit 402c17b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/process.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,10 @@ process.on('warning', (warning) => {
606606

607607
By default, Node.js will print process warnings to `stderr`. The `--no-warnings`
608608
command-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

611614
The following example illustrates the warning that is printed to `stderr` when
612615
too 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

0 commit comments

Comments
 (0)