Skip to content

Commit

Permalink
rename DEBUG_HIDE_TTY_DATE to DEBUG_HIDE_DATE
Browse files Browse the repository at this point in the history
The date is actually only printed when output is *NOT* a TTY.

Let's just genericize the name instead.
  • Loading branch information
TooTallNate committed Sep 26, 2017
1 parent dcb37b2 commit 2c0df9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -146,10 +146,10 @@ change the behavior of the debug logging:
| Name | Purpose |
|-----------|-------------------------------------------------|
| `DEBUG` | Enables/disables specific debugging namespaces. |
| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
| `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
| `DEBUG_DEPTH` | Object inspection depth. |
| `DEBUG_DEPTH` | Object inspection depth. |
| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
| `DEBUG_HIDE_TTY_DATE` | Hide date from debug output on TTY. |


__Note:__ The environment variables beginning with `DEBUG_` end up being
Expand Down
2 changes: 1 addition & 1 deletion src/node.js
Expand Up @@ -120,7 +120,7 @@ function formatArgs(args) {
}

function getDate() {
if (exports.inspectOpts.hideTtyDate) {
if (exports.inspectOpts.hideDate) {
return '';
} else {
return new Date().toISOString() + ' ';
Expand Down

0 comments on commit 2c0df9b

Please sign in to comment.