mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
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:
parent
dcb37b2ca4
commit
2c0df9baf7
@ -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
|
||||
|
||||
@ -120,7 +120,7 @@ function formatArgs(args) {
|
||||
}
|
||||
|
||||
function getDate() {
|
||||
if (exports.inspectOpts.hideTtyDate) {
|
||||
if (exports.inspectOpts.hideDate) {
|
||||
return '';
|
||||
} else {
|
||||
return new Date().toISOString() + ' ';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user