[asterisk-bugs] [JIRA] (ASTERISK-23938) pri set debug 0 span <span> disables file debugging for all spans
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Wed Jun 25 19:20:56 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219972#comment-219972 ]
Rusty Newton commented on ASTERISK-23938:
-----------------------------------------
{quote}
My personal feeling on this is that 'pri set debug 0 span <span>' shouldn't actually touch the file debug at all and instead 'pri unset debug file' should be added for this purpose.
{quote}
I generally agree, but would prefer something like "pri set debug file off". Though, that is just my preference, I think either would do.
> pri set debug 0 span <span> disables file debugging for all spans
> -----------------------------------------------------------------
>
> Key: ASTERISK-23938
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23938
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_dahdi
> Affects Versions: SVN, 1.8.28.2, 11.10.2, 12.3.2
> Reporter: Jonathan Rose
>
> If debugging is going on for a number of spans and
> 'pri set debug 0 span <any span>' is used, Asterisk will disable the file output for pri debug entirely without bothering to check if other spans still have log levels higher than 0.
> Note that there is no handle for pri set debug without setting span. My personal feeling on this is that 'pri set debug 0 span <span>' shouldn't actually touch the file debug at all and instead 'pri unset debug file' should be added for this purpose.
> The alternative is to check all spans to see if their levels are 0 and disable it accordingly, but this still would unset the file when that might not actually be expected since the user didn't unset it explicitly.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list