Logger filter changroup applies to every log and not just the dialplan

Hi everyone, I have a quick question:

Running Asterisk 22.7.0, I was decluttering my CLI log entries in the dialplan by assigning specific groups to different zones of the call flow via LOG_GROUP()

When I try to filter the logs via logger filter changroup groupname on, the entire CLI output becomes filtered and not just the relative dialplan portion. Is this the intended way or am I missing something?

I was expecting to filter out any log generated by the dialplan execution not in the specified changroup(s) while keeping any debug from any other non dialplan/channel related logs like pjsip logger or any core module debug. It is possible configure CLI logging to achieve the above or it is not possible?

Thank you for your time.

I found the culprit of my request.

Inside logger.c at line 1758:

I changed the return value to 1 even if no callidgroup is found. In this way I can still see any other log outside the dialplan execution, while filtering verbose logs of a dialplan section with a LOG_GROUP (i.e. SIP MESSAGE handling)

I don’t know if this was part of a requested feature, but it would be nice to make this behaviour configurable via logger filter cli commands.