Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Elaborate on async stack trace warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gaofanmichael committed Oct 11, 2017
1 parent 82fb478 commit b89a553
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/agent/debuglet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ export class Debuglet extends EventEmitter {
* @private
*/
async start(): Promise<void> {
process.on('warning', (warning) => {
if ((warning as any).code ===
'INSPECTOR_ASYNC_STACK_TRACES_NOT_AVAILABLE') {
console.log(
'The current debug agent does not use Inspector async stack ' +
'traces. The above warning will not affect the debug agent.');
}
});
const that = this;
const stat = promisify(fs.stat);

Expand Down

0 comments on commit b89a553

Please sign in to comment.