diff --git a/README.md b/README.md index 9157bfc..8e754d1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/node.js b/src/node.js index 5440d5b..d666fb9 100644 --- a/src/node.js +++ b/src/node.js @@ -120,7 +120,7 @@ function formatArgs(args) { } function getDate() { - if (exports.inspectOpts.hideTtyDate) { + if (exports.inspectOpts.hideDate) { return ''; } else { return new Date().toISOString() + ' ';