Skip to content

Commit 1c0b628

Browse files
committed
Update README
1 parent 6d51b31 commit 1c0b628

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ lead to conflicts between libraries. Libraries should use the
4848
[`-r log-process-errors` CLI flag](#usage-preferred) instead of
4949
[`require()`](#usage-custom).
5050

51+
# Duplicate warnings
52+
53+
It is recommended to use the
54+
[`--no-warnings` CLI flag](https://nodejs.org/api/cli.html#cli_no_warnings) or
55+
the
56+
[`NODE_NO_WARNINGS=1`](https://nodejs.org/api/cli.html#cli_node_no_warnings_1)
57+
environment variable to prevent warnings being logged twice.
58+
5159
# Custom logging
5260

5361
By default events will be logged to the console (e.g. `console.error()`).

0 commit comments

Comments
 (0)