[Home]

Summary:ASTERISK-23571: 'logger set level' CLI commands don't toggle logger message types on or off
Reporter:Rusty Newton (rnewton)Labels:
Date Opened:2014-04-02 09:32:53Date Closed:2018-01-02 08:44:23.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/Logging
Versions:SVN 1.8.26.1 11.8.1 12.1.1 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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.
Comments:By: Sean Bright (seanbright) 2017-12-14 10:32:37.247-0600

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

By: Asterisk Team (asteriskteam) 2018-01-02 08:44:23.608-0600

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines