-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Helper to help components spit out debug logs #2349
Conversation
public dumpDebugLogs() { | ||
logger.debug('matrix-js-sdk: dumping extra debug logs to the console'); | ||
this.emit(ClientEvent.DumpDebugLogs); | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
There was a problem hiding this 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.
There was a problem hiding this 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?
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.