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

Improve messages for assembly filterin/filterout #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomschr
Copy link
Member

@tomschr tomschr commented Oct 29, 2023

This PR improves the INFO message when <filterin/> or <filterout/> is used in an assembly file.

IMHO, the current message does not provide much information when something happens:

INFO: including a module or structure because the ... is set to ...
INFO: No modules or structures matched attributes for inclusion.

This makes it hard to debug or to trace down issues in an assembly file.

This PR improves the message and includes the name of the parent element (usually <module> or structure) and either or both @resourceref or @xml:id attributes.

The new message looks like this:

INFO: including module[@resourceref=foo] because the ... is set to ...
INFO: module[@resourceref=_bar and @xml:id=bar] DID NOT match attributes for inclusion.

Perhaps we could change the wording a bit.

@bobstayton Let me know if you think this can be useful. 🙂

The INFO message contains now the module or structure with @resourceref
or @xml:id attributes. This makes it easier to see what
happens and helps to debug issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant