Commit f2fbcc5
util: fix debuglog.enabled not being present with callback logger
The method returned by the callback is missing the .enabled property.
This is added in a consistent way that it also verifies that it's a
getter.
Fixes: #56676
PR-URL: #59858
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent e790eb6 commit f2fbcc5Copy full SHA for f2fbcc5
File tree
Expand file treeCollapse file tree
2 files changed
+19
-3
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/sequential
Expand file treeCollapse file tree
2 files changed
+19
-3
lines changedOpen diff view settings
Collapse file
lib/internal/util/debuglog.js
Copy file name to clipboardExpand all lines: lib/internal/util/debuglog.js+10-1Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | | - |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
98 | 106 | |
| 107 | + |
99 | 108 | |
100 | 109 | |
101 | 110 | |
|
Collapse file
test/sequential/test-util-debug.js
Copy file name to clipboardExpand all lines: test/sequential/test-util-debug.js+9-2Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
| 60 | + |
61 | 61 | |
62 | 62 | |
63 | 63 | |
| ||
117 | 117 | |
118 | 118 | |
119 | 119 | |
| 120 | + |
| 121 | + |
120 | 122 | |
121 | 123 | |
122 | 124 | |
| 125 | + |
123 | 126 | |
124 | 127 | |
125 | 128 | |
126 | | - |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
127 | 134 | |
0 commit comments