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

Sean Bright (JIRA) noreply at issues.asterisk.org
Thu Dec 14 10:33:07 CST 2017


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

Sean Bright updated ASTERISK-23571:
-----------------------------------

    Assignee: Rusty Newton
      Status: Waiting for Feedback  (was: Open)

Was this with {{asterisk -c}} or {{asterisk -r}}?

> '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, 1.8.26.1, 11.8.1, 12.1.1
>            Reporter: Rusty Newton
>            Assignee: 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