[asterisk-bugs] [Asterisk 0012224]: Use ast_verb instead of ast_debug for channel driver debugging

noreply at bugs.digium.com noreply at bugs.digium.com
Sun Mar 16 12:16:40 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12224 
====================================================================== 
Reported By:                DEA
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12224
Category:                   Channels/chan_skinny
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 108346 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-16-2008 01:44 CDT
Last Modified:              03-16-2008 12:16 CDT
====================================================================== 
Summary:                    Use ast_verb instead of ast_debug for channel driver
debugging
Description: 
When turning on channel driver specific debugging (skinny set debug on),
it is cleaner to use ast_verb instead of ast_debug.

With core verbose set to 1, there is not a lot of output to the log
or console, but when core debug is set to 1 the logs can get quite
crowded.

MVanbaak-
   I do not believe I can assign reports/tickets, so I leave it to
one of our administrators or bug marshalls to assign it to you.
====================================================================== 

---------------------------------------------------------------------- 
 DEA - 03-16-08 12:16  
---------------------------------------------------------------------- 
Common?

Channels that use a local debug variable & ast_verb (15%)
IAX2                MGCP
Unistim

Channels that use a local debug variable & ast_debug: (15%)
H323                SIP
Skinny (used to be verbose)

Channels that use a local debug and raw CLI output (15%)
MISDN               OSS (uses ast_log)
USBRadio (ast_log)

Channels that use ast_debug alone (55%)
gtalk               Agent
ALSA                Console
Features            Jingle
NBS                 Phone
VPB                 ZAP
Local

To make it even more interesting, I would not want to just
strip out the skinny_debug flag, I would want to try to assign
each message to a valid level.  So I gave a quick look at the
other channels use of ast_debug.

67% of all channel debuging is at level 1
13% is at level 3
13% is at level 4
7%  is at level 2
.1% is at level 5


I know that it has been discussed in the past to try
defining what type of reporting is desired at each level,
but I have not located any documentation to suggest a
concensus was reached.

In any case I guess the only way forward would be to stip
skinny_debug and leave everything at debug level 1 for now
so that we can be moving towards the common interface.
Even so, chan_skinny is far from unique in this regard. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-16-08 12:16  DEA            Note Added: 0084033                          
======================================================================




More information about the asterisk-bugs mailing list