matrix-org / matrix-org/matrix-widget-api

Improve `[PostmessageTransport]` logging

Open
#131 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
95
Forks
24
Avg merge
16h 16m
Merged PRs (30d)
1

Description

This line will just print the object but in the actual logs this object is not serialized (in playwright this makes it hard to debug)

`console.log(`[PostmessageTransport] Sending object to ${this.targetOrigin}: `, message);`
we should add at least the action type as a string to the log.
@BillCarsonFr

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the PostmessageTransport logging call that prints the message object, and inspect how messages expose their action type. Update the log so the action type is visible as text in Playwright logs, then run the relevant existing checks to confirm the logging output.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.