[asterisk-dev] [Code Review]: Separate verbose level for logging

Tilghman Lesher tilghman at meg.abyt.es
Tue Nov 29 09:04:23 CST 2011


On Tue, Nov 29, 2011 at 3:17 AM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Mon, Nov 28, 2011 at 04:24:56PM -0000, Tilghman Lesher wrote:
>
>> Most people, when they start Asterisk for ad-hoc testing, simply hold
>> down the v key for a brief period.  That rarely means that verbosity
>> is consistent, runtime-to-runtime.  Could be 5 or 7 or 16 or 22.  We
>> could inherit from whatever option_verbose is set to at the time.  My
>> issue with that, though, is that the verbosity level can be changed
>> during runtime and a 'logger reload' would thus change the logger
>> verbosity level, which most people would consider unexpected behavior.
>>
>> Thus, I think 3 is an acceptable default.
>
> Regarding the current defaults, I'll just point out to the following
> code in contrib/scripts/safe_asterisk:
>
<snip>
>        ASTARGS="${ASTARGS} -vvvg"

Yes, that's another good reason for the default logger verbose level to be 3.



More information about the asterisk-dev mailing list