-
-
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
Debuglog as events #1611
Debuglog as events #1611
Conversation
… stdout (default and same behaviour as before, emit a debuglog event or be turned off)
@FlyveHest, please include a sign-off as described here |
Is editing the PR text sufficient? |
@FlyveHest, yes! 👍 |
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.
Hmm, why only in the sync module and not the entire JS SDK...?
I'd also like to see an approach that doesn't require adding several arguments to every logging call if possible.
Mostly because with my, at the time, more limited exposure to the SDK, hadn't seen the output issue elsewhere. It seems like debug logging has been up to the individual part developers, as there are multiple ways of doing it, depending on where in the project you are. I recently got encryption working, and got a ton of debug noise there as well, and the way its implemented there is different than in the sync module. But, i'll try and take a look at a broader scope when I have some more time. If this PR is rejected, it would be really nice if DEBUG could be set to false in the committed code, at least. (Personal opinion) |
Slightly related to element-hq/element-web#21532 |
It looks to me like this PR isn't really going anywhere, so I'm going to go ahead and close it, though I certainly agree that better control over the logging is required. #1970 is maybe a better tracker for this. |
Changed debuglog in sync module to be user configurable via
debugLogType
option given tocreateClient
call.Can be one of
debuglog
event with string to be logged as data, so the client can incorporate debug logging into their own logging framework, if they so wishSigned-off-by: Peter Reinhold peter_github@reinhold.dk
This change is marked as an internal change (Task), so will not be included in the changelog.