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

Hide most UIA specific logging behind debug logging category UIA, and add new log entries #10397

Merged
merged 8 commits into from
Nov 19, 2019

Conversation

LeonarddeR
Copy link
Collaborator

@LeonarddeR LeonarddeR commented Oct 18, 2019

Link to issue number:

Fixes #10491
Fixes #10422

Summary of the issue:

UIA TextInfo code in particular logs many entries at the debug level. This can be very noisy if you want to debug an issue in an UIA text control that is unrelated to the UIA text field fetching itself.

Description of how this pull request fixes the issue:

Add a new UIA debug logging category to the advanced settings, which is off by default. If on, not only TextInfo field fetching is logged, but also several things within the handler, such as ignored win events, events that are unknown to NVDA, etc.
While working on this, I added proper debug logging on the UIAHandler event handler methods, thereby avoiding errors logged by comtypes.

Testing performed:

Tested that several new log entries appear in the log and that getTextWithFields logs UIA specific details when the UIA debug logging is enabled.

Known issues with pull request:

None

Change log entry:

May be not worth mentioning

@AppVeyorBot
Copy link

PR introduces Flake8 errors 😲

See test results for Failed build of commit 713d1448ea

@LeonarddeR
Copy link
Collaborator Author

@michaelDCurran, this is ready for review.

@michaelDCurran michaelDCurran merged commit eb0c677 into nvaccess:master Nov 19, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Nov 19, 2019
@LeonarddeR LeonarddeR deleted the UIALogging branch November 21, 2019 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants