Skip to content

feat(debug): Debug log of forwarded events#704

Open
mws19901118 wants to merge 3 commits intoQwikDev:mainfrom
mws19901118:debug-log-forwarded-events
Open

feat(debug): Debug log of forwarded events#704
mws19901118 wants to merge 3 commits intoQwikDev:mainfrom
mws19901118:debug-log-forwarded-events

Conversation

@mws19901118
Copy link
Contributor

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests

Description

Adds a new logForwardedEvents config flag (debug mode required) that logs all forwarded event activity on both the main thread and web worker:

  • Main: "Forward event: fn()" for live calls
  • Main: "Forward queued event: fn()" for calls replayed from queue
  • Worker: "Forwarded event received: fn()"
  • Worker: "Forwarded event execute: fn(args...)"

Use cases and why

Personally, I find such debug print useful when I was investigating a GTM data layer events timing issue under Partytown.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

mws19901118 and others added 3 commits March 13, 2026 21:39
Adds a new `logForwardedEvents` config flag (debug mode required) that
logs all forwarded event activity on both the main thread and web worker:
- Main: "Forward event: fn()" for live calls
- Main: "Forward queued event: fn()" for calls replayed from queue
- Worker: "Forwarded event received: fn()"
- Worker: "Forwarded event execute: fn(args...)"

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2026

🦋 Changeset detected

Latest commit: 31b7f6b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@qwik.dev/partytown Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant