util: fix debuglog.enabled not being present with callback logger · nodejs/node@f2fbcc5 · GitHub
Skip to content

Commit f2fbcc5

Browse files
BridgeARaduh95
authored andcommitted
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 f2fbcc5

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

lib/internal/util/debuglog.js

Lines changed: 10 additions & 1 deletion

test/sequential/test-util-debug.js

Lines changed: 9 additions & 2 deletions

0 commit comments

Comments
 (0)