From 2c0df9baf7aefae2ea830e9d5eb2be64f0e71f18 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 26 Sep 2017 21:11:45 +0200 Subject: [PATCH] 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. --- README.md | 4 ++-- src/node.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9157bfc4..8e754d17 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 5440d5b0..d666fb9c 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() + ' ';