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.
This commit is contained in:
Nathan Rajlich 2017-09-26 21:11:45 +02:00
parent dcb37b2ca4
commit 2c0df9baf7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -120,7 +120,7 @@ function formatArgs(args) {
}
function getDate() {
if (exports.inspectOpts.hideTtyDate) {
if (exports.inspectOpts.hideDate) {
return '';
} else {
return new Date().toISOString() + ' ';