[asterisk-bugs] [JIRA] Commented: (ASTERISK-20538) inconsistent ast_verb numbering

Mark Michelson (JIRA) noreply at issues.asterisk.org
Wed Oct 10 16:49:27 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=198235#comment-198235 ] 

Mark Michelson commented on ASTERISK-20538:
-------------------------------------------

I believe the large numbers are used because those messages are overly verbose and would print way more often than what people would want to see. By choosing high numbers like 10 or 11, it means people have to specifically enable verbosity at that ridiculously high level in order to see those messages. Reducing their level would defeat the purpose.

> inconsistent ast_verb numbering
> -------------------------------
>
>                 Key: ASTERISK-20538
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20538
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 1.8.18.0
>            Reporter: Walter Doekes
>            Severity: Trivial
>
> {noformat}
> asterisk-1.8.x$ find . -name '*.c' | xargs grep -h 'ast_verb([0-9]' | sed -e 's/.*ast_verb(//;s/,.*//' | sort | uniq -c
>     128 0
>     136 1
>       3 10
>       8 11
>     131 2
>     565 3
>      85 4
>      13 6
> {noformat}
> I.e. 3 uses of ast_verb(10) and 8 of ast_verb(11). Is there a good reason for this? Or could those calls be lowered to the 5-6 range?
> {noformat}
> asterisk-1.8.x$ find . -name '*.c' | xargs grep -l 'ast_verb(10,'
> ./cel/cel_odbc.c
> ./res/res_odbc.c
> ./cdr/cdr_adaptive_odbc.c
> {noformat}
> {noformat}
> asterisk-1.8.x$ find . -name '*.c' | xargs grep -l 'ast_verb(11,'
> ./cel/cel_odbc.c
> ./cel/cel_pgsql.c
> ./cdr/cdr_odbc.c
> ./cdr/cdr_pgsql.c
> ./cdr/cdr_adaptive_odbc.c
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list