We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3360dcb commit 969fb1cCopy full SHA for 969fb1c
doc/api/async_hooks.md
@@ -273,7 +273,8 @@ async_hooks.createHook({
273
init(asyncId, type, triggerAsyncId) {
274
const eid = async_hooks.executionAsyncId();
275
fs.writeSync(
276
- 1, `${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`);
+ process.stdout.fd,
277
+ `${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`);
278
}
279
}).enable();
280
@@ -325,7 +326,7 @@ async_hooks.createHook({
325
326
327
const indentStr = ' '.repeat(indent);
328
- 1,
329
330
`${indentStr}${type}(${asyncId}):` +
331
` trigger: ${triggerAsyncId} execution: ${eid}\n`);
332
},
0 commit comments