Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper to help components spit out debug logs #2349

Closed

Conversation

MadLittleMods
Copy link
Contributor

@MadLittleMods MadLittleMods commented May 5, 2022

Helper to help components spit out debug logs

Part of matrix-org/matrix-react-sdk#8502


This change is marked as an internal change (Task), so will not be included in the changelog.

@MadLittleMods MadLittleMods added the T-Task Tasks for the team like planning label May 5, 2022
src/models/room.ts Outdated Show resolved Hide resolved
src/timeline-window.ts Outdated Show resolved Hide resolved
Comment on lines +8969 to +8972
public dumpDebugLogs() {
logger.debug('matrix-js-sdk: dumping extra debug logs to the console');
this.emit(ClientEvent.DumpDebugLogs);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using logs is a really bad mechanism given that it relies on consumers monkey-patching console which we don't say anywhere in the generated docs to do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't have to live in matrix-js-sdk. What event emitter pattern can we use exclusively in matrix-react-sdk? This point is tracked by matrix-org/matrix-react-sdk#8502 (comment)

@MadLittleMods MadLittleMods changed the title Draft: Helper to help components spit out debug logs Helper to help components spit out debug logs May 5, 2022
@MadLittleMods MadLittleMods marked this pull request as ready for review May 5, 2022 22:45
@MadLittleMods MadLittleMods requested a review from a team as a code owner May 5, 2022 22:45
@MadLittleMods MadLittleMods requested a review from t3chguy May 5, 2022 22:45
@turt2live turt2live removed the request for review from t3chguy May 5, 2022 23:54
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this at this level - will detail on the react-sdk PR.

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @MadLittleMods : I don't think we need this PR anymore?

@turt2live turt2live deleted the madlittlemods/debug-logs-for-timeline-panel branch May 10, 2022 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants