[Home]

Summary:ASTERISK-07291: Output of 'sip debug' always goes to console
Reporter:Douglas Garstang (dgarstang)Labels:
Date Opened:2006-07-05 14:45:16Date Closed:2011-06-07 14:08:18
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) r36192_console_log.txt
Description:Here's my logger.conf:

[general]

[logfiles]

console => notice,warning,error
messages => notice,warning,error,verbose,debug

When I start Asterisk with 'asterisk -trvvvv' and issue a 'sip debug' command on the console, all sip debug output is sent to the console, in addition to the messages file. The output should _only_ be sent to the messages file.

Given that there's no documentation, it's hard to know exactly what should go in logger.conf to achieve this, but I'm pretty confident that what's there now should work.
Comments:By: Andrey S Pankov (casper) 2006-07-06 12:03:38

It seems like currently there is no way to disable verbose output to the console.

By: Douglas Garstang (dgarstang) 2006-07-10 09:51:51

There isn't? It's a good thing I opened a bug then....

By: Serge Vecher (serge-v) 2006-07-10 10:18:31

in addition the following line, with the equivalent categories will produce very different results. Console output looks more useful :)
console => notice,warning,error,verbose,debug
messages => notice,warning,error,verbose,debug

By: Douglas Garstang (dgarstang) 2006-07-10 10:22:02

vechers: I didn't follow your post at all. I tried those lines anyway, and still got sip debug output on the console.

By: Serge Vecher (serge-v) 2006-07-10 10:31:58

well, what I posted about is related to the problem you are describing. The issue here, as I understand it, is that on a general level logger.conf settings do no work as "expected." Just trying to figure out how deep the rabbit hole goes...

To help narrow your specific issue down, I wonder if sip debug will still be sent to the console if you remove "debug" from messages as well.

By: Douglas Garstang (dgarstang) 2006-07-10 10:43:16

With:

console => notice,warning,error,verbose
messages => notice,warning,error,verbose ;,debug

afer an Asterisk restart, 'sip debug' output still goes to console and /var/log/asterisk/messages files.

Hmmm.

By: Serge Vecher (serge-v) 2006-07-10 11:13:28

I suspect that the changes involved to address this will be quite substantial and doubt will be addressed for 1.2.x release branch. I leave it for oej to make a final statement on this...

FWIW, here is the output from trunk r36192.
[logger.conf]
console => notice,warning,error,verbose
messages => notice,warning,error,verbose

asterisk started with "asterisk -tvvvvddddc". Setting debug to 0 seems to have no effect.

By: Russell Bryant (russell) 2006-07-26 21:20:26

This is not a bug.  It is just the way it works.

The "sip debug" output is "verbose" output in asterisk console terminology.  Also, the "verbose" setting in logger.conf has no effect for the console in logger.conf.  Printing verbose output is only controlled by the "set verbose" CLI command.