[asterisk-dev] [Code Review] Change per-file debug and verbose levels to be per-module, the way users expect them to work.

Kevin Fleming kpfleming at digium.com
Mon Mar 22 12:00:23 CDT 2010



> On 2010-03-19 11:02:15, Russell Bryant wrote:
> > Nice work.  :-)  Should we make this allow the ".so" extension?
> 
> Kevin Fleming wrote:
>     Well, we could. For 1.8, I'm kind of thinking we can just drop support in CLI commands for '.so' extensions completely, since they haven't been required for some time now (although we could keep it for modules.conf to avoid breaking existing config files). If we agree that's reasonable, then I'd rather not modify this patch to add support for them.
> 
> Russell Bryant wrote:
>     Why drop support for it?  That's what the modules are called on disk, so it seems to be a reasonable expectation to be able to refer to them that way.

They aren't called that when they are embedded into the Asterisk binary (but we allow the .so extension anyway and strip it when matching), and the fact that they are called that is really just an artifact of the build system. I don't have a strong opinion for it either way, to be honest. If support for the extension needs to be added here, it could be done quite easily of course.


- Kevin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/574/#review1708
-----------------------------------------------------------


On 2010-03-22 11:33:34, Kevin Fleming wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/574/
> -----------------------------------------------------------
> 
> (Updated 2010-03-22 11:33:34)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> 'core set debug' and 'core set verbose' can optionally change the level for a specific filename; however, this is actually for a specific source file name, not the module that source file is included in. With examples like chan_sip, chan_iax2, chan_misdn and others consisting of multiple source files, this will not lead to the behavior that users expect. If they want to set the debug level for chan_sip, they want it set for all of chan_sip, and not to have to also set it for reqresp_parser and other files that comprise the chan_sip module.
> 
> This patch changes this functionality to be module-name based instead of file-name based.
> 
> To make this work, some Makefile modifications were required to ensure that the AST_MODULE definition is present in each object file produced for each module as well. 
> 
> 
> Diffs
> -----
> 
>   /trunk/Makefile.moddir_rules 253530 
>   /trunk/channels/Makefile 253530 
>   /trunk/codecs/Makefile 253530 
>   /trunk/include/asterisk/logger.h 253530 
>   /trunk/include/asterisk/options.h 253530 
>   /trunk/main/Makefile 253530 
>   /trunk/main/cli.c 253530 
>   /trunk/pbx/Makefile 253530 
>   /trunk/res/Makefile 253530 
> 
> Diff: https://reviewboard.asterisk.org/r/574/diff
> 
> 
> Testing
> -------
> 
> Compile testing, and basic CLI sanity checking.
> 
> 
> Thanks,
> 
> Kevin
> 
>




More information about the asterisk-dev mailing list