diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-06-20 18:10:06 +0300 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-06-25 09:04:55 +0300 |
commit | 018d6186a7b426026f431b39e709f880868bd03a (patch) | |
tree | c328c123904589a1583db717b26f6dae4d7e2977 /src/async_wrap.cc | |
parent | c403eeb7fdf8c1033422b6ea8bf025667892f867 (diff) |
src: add native debugging code to workers
Now that we have better native debugging utilities in core,
let’s use them :)
PR-URL: https://github.com/nodejs/node/pull/21423
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r-- | src/async_wrap.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc index 7734c1b1017..89e82b9ce36 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -803,7 +803,8 @@ void EmitAsyncDestroy(Isolate* isolate, async_context asyncContext) { std::string AsyncWrap::diagnostic_name() const { return std::string(provider_names[provider_type()]) + - " (" + std::to_string(static_cast<int64_t>(async_id_)) + ")"; + " (" + std::to_string(env()->thread_id()) + ":" + + std::to_string(static_cast<int64_t>(async_id_)) + ")"; } } // namespace node |