[asterisk-bugs] [JIRA] (ASTERISK-23571) 'logger set level' CLI commands don't toggle logger message types on or off

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Apr 2 09:35:18 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-23571:
------------------------------------

    Description: 
"logger show channels"
{noformat}
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
                                    Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
{noformat}

"logger set level DEBUG off"
{noformat}
Logger status for 'DEBUG' has been set to 'off'.
{noformat}

"logger show channels"
{noformat}
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
                                    Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
{noformat}

Plus we still get DEBUG on the console.
{noformat}
[Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	tsx0x7f448403d Sending Request msg OPTIONS/cseq=21258 (tdta0x7f4484011ac0) in state Null
[Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	 sip_resolve.c .Target '10.24.18.16:5060' type=Unspecified resolved to '10.24.18.16:5060' type=UDP (UDP transport)
{noformat}

"core show settings"
{noformat}
  Root console verbosity:      5
  Current console verbosity:   5
  Debug level:                 5
{noformat}

"core show settings" shows what I would expect, since the help documentation for the command "logger set level" says that it toggles the message type on or off for the current remote console.

{noformat}*CLI> core show help logger set level
logger set level {DEBUG|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} -- Enables/Disables a specific logging level for this console
{noformat}

Yet the documentation is still invalid since it doesn't do what it says it does.

  was:
"logger show channels"
{noformat}
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
                                    Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
{noformat}

"logger set level DEBUG off"
{noformat}
Logger status for 'DEBUG' has been set to 'off'.
{noformat}

"logger show channels"
{noformat}
Channel                             Type     Status    Configuration
-------                             ----     ------    -------------
/var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
/var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
                                    Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
{noformat}

Plus we still get DEBUG on the console.
{noformat}
[Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	tsx0x7f448403d Sending Request msg OPTIONS/cseq=21258 (tdta0x7f4484011ac0) in state Null
[Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	 sip_resolve.c .Target '10.24.18.16:5060' type=Unspecified resolved to '10.24.18.16:5060' type=UDP (UDP transport)
{noformat}

"core show settings"
{noformat}
  Root console verbosity:      5
  Current console verbosity:   5
  Debug level:                 5
{noformat}

"core show settings" shows what I would expect, since the help documentation for the command "logger set level" says that it toggles the message type on or off for the console.

{noformat}*CLI> core show help logger set level
logger set level {DEBUG|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} -- Enables/Disables a specific logging level for this console
{noformat}

Yet the documentation is still invalid since it doesn't do what it says it does.


> 'logger set level' CLI commands don't toggle logger message types on or off
> ---------------------------------------------------------------------------
>
>                 Key: ASTERISK-23571
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23571
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: SVN, 12.1.1
>            Reporter: Rusty Newton
>            Severity: Minor
>
> "logger show channels"
> {noformat}
> Channel                             Type     Status    Configuration
> -------                             ----     ------    -------------
> /var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
> /var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
>                                     Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
> {noformat}
> "logger set level DEBUG off"
> {noformat}
> Logger status for 'DEBUG' has been set to 'off'.
> {noformat}
> "logger show channels"
> {noformat}
> Channel                             Type     Status    Configuration
> -------                             ----     ------    -------------
> /var/log/asterisk/full              File     Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
> /var/log/asterisk/messages          File     Enabled    - NOTICE WARNING ERROR VERBOSE 
>                                     Console  Enabled    - DEBUG NOTICE WARNING ERROR VERBOSE 
> {noformat}
> Plus we still get DEBUG on the console.
> {noformat}
> [Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	tsx0x7f448403d Sending Request msg OPTIONS/cseq=21258 (tdta0x7f4484011ac0) in state Null
> [Apr  2 09:29:04] DEBUG[3580]: pjsip:0 <?>: 	 sip_resolve.c .Target '10.24.18.16:5060' type=Unspecified resolved to '10.24.18.16:5060' type=UDP (UDP transport)
> {noformat}
> "core show settings"
> {noformat}
>   Root console verbosity:      5
>   Current console verbosity:   5
>   Debug level:                 5
> {noformat}
> "core show settings" shows what I would expect, since the help documentation for the command "logger set level" says that it toggles the message type on or off for the current remote console.
> {noformat}*CLI> core show help logger set level
> logger set level {DEBUG|NOTICE|WARNING|ERROR|VERBOSE|DTMF} {on|off} -- Enables/Disables a specific logging level for this console
> {noformat}
> Yet the documentation is still invalid since it doesn't do what it says it does.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list