Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4f561 commit 3abcc74Copy full SHA for 3abcc74
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
@@ -330,7 +331,7 @@ async_hooks.createHook({
330
331
332
const indentStr = ' '.repeat(indent);
333
- 1,
334
335
`${indentStr}${type}(${asyncId}):` +
336
` trigger: ${triggerAsyncId} execution: ${eid}\n`);
337
},
0 commit comments