Skip to content

Commit 2c0df9b

Browse files
committed
rename DEBUG_HIDE_TTY_DATE to DEBUG_HIDE_DATE
The date is actually only printed when output is *NOT* a TTY. Let's just genericize the name instead.
1 parent dcb37b2 commit 2c0df9b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ change the behavior of the debug logging:
146146
| Name | Purpose |
147147
|-----------|-------------------------------------------------|
148148
| `DEBUG` | Enables/disables specific debugging namespaces. |
149+
| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
149150
| `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
150-
| `DEBUG_DEPTH` | Object inspection depth. |
151+
| `DEBUG_DEPTH` | Object inspection depth. |
151152
| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
152-
| `DEBUG_HIDE_TTY_DATE` | Hide date from debug output on TTY. |
153153

154154

155155
__Note:__ The environment variables beginning with `DEBUG_` end up being

src/node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function formatArgs(args) {
120120
}
121121

122122
function getDate() {
123-
if (exports.inspectOpts.hideTtyDate) {
123+
if (exports.inspectOpts.hideDate) {
124124
return '';
125125
} else {
126126
return new Date().toISOString() + ' ';

0 commit comments

Comments
 (0)