Skip to content

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

Merged
michaelDCurran merged 8 commits into
nvaccess:masterfrom
BabbageCom:UIALogging
Nov 19, 2019
Merged

Hide most UIA specific logging behind debug logging category UIA, and add new log entries#10397
michaelDCurran merged 8 commits into
nvaccess:masterfrom
BabbageCom:UIALogging

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented Oct 18, 2019

Copy link
Copy Markdown
Collaborator

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
Copy Markdown

PR introduces Flake8 errors 😲

See test results for Failed build of commit 713d1448ea

@LeonarddeR

Copy link
Copy Markdown
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