Skip to content

Commit

Permalink
Update src/workerd/io/worker.c++
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored Oct 2, 2024
1 parent 4f89424 commit 533671e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/workerd/io/worker.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1206,10 +1206,9 @@ Worker::Isolate::Isolate(kj::Own<Api> apiParam,
jsg::check(err->Set(js.v8Context(), js.str("name"_kj), js.str("Warning"_kj)));
auto stack = jsg::check(err->Get(js.v8Context(), js.str("stack"_kj)));
// Let's only log if there's actually a useful stack in the log.
auto msg = kj::str("NOSENTRY ", stack);
// This check is meant to prevent spamming the logs with messages that do
// not actually provide any useful information.
if (msg != "NOSENTRY Warning: Cross Request Promise Resolve") {
if (stack != "Warning: Cross Request Promise Resolve") {
KJ_LOG(WARNING, kj::str("NOSENTRY ", stack));
} else {
// If we get here, it means we don't have a useful JS stack trace.
Expand Down

0 comments on commit 533671e

Please sign in to comment.