Skip to content
Snippets Groups Projects
  • Russell Bryant's avatar
    f1f72312
    (closes issue #10192) · f1f72312
    Russell Bryant authored
    Reported by: bbryant
    Patches:
          20070720__core_debug_by_file.patch uploaded by bbryant (license 36)
    	  (with some modifications by me)
    Tested by: russell, bbryant
    
    This set of changes introduces the ability to set the core debug or verbose
    levels on a per-file basis.  Interestingly enough, in 1.4, you have the ability
    to set core debug for a single file, but that functionality was accidentally
    lost in the conversion of the CLI commands to the new format.
    
    This patch improves upon what was in 1.4 by letting you set it for more than 1
    file, and by also supporting verbose.
    
    *** Janitor Project ***
    
    This patch also introduces a new macro, ast_verb(), which is similar
    to ast_debug().  Setting the per file verbose value only works for messages that
    use this macro.  Converting existing uses of ast_verbose() can be done like:
    
    if (option_debug > 2)
       ast_verbose(VERBOSE_PREFIX_3 "Something useful\n");
    
    ...
    
    ast_verb(3, "Something useful\n");
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    f1f72312
    History
    (closes issue #10192)
    Russell Bryant authored
    Reported by: bbryant
    Patches:
          20070720__core_debug_by_file.patch uploaded by bbryant (license 36)
    	  (with some modifications by me)
    Tested by: russell, bbryant
    
    This set of changes introduces the ability to set the core debug or verbose
    levels on a per-file basis.  Interestingly enough, in 1.4, you have the ability
    to set core debug for a single file, but that functionality was accidentally
    lost in the conversion of the CLI commands to the new format.
    
    This patch improves upon what was in 1.4 by letting you set it for more than 1
    file, and by also supporting verbose.
    
    *** Janitor Project ***
    
    This patch also introduces a new macro, ast_verb(), which is similar
    to ast_debug().  Setting the per file verbose value only works for messages that
    use this macro.  Converting existing uses of ast_verbose() can be done like:
    
    if (option_debug > 2)
       ast_verbose(VERBOSE_PREFIX_3 "Something useful\n");
    
    ...
    
    ast_verb(3, "Something useful\n");
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76555 65c4cc65-6c06-0410-ace0-fbb531ad65f3