[OpenSIPS-Devel] [ opensips-Patches-3593300 ] setdebug Negative Levels
SourceForge.net
noreply at sourceforge.net
Fri Dec 7 11:43:13 CET 2012
Patches item #3593300, was opened at 2012-12-06 12:12
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3593300&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.8.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: David Sanders (dmsanders)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: setdebug Negative Levels
Initial Comment:
Currently it is a scripting error to try and pass a negative value to setdebug (ie setdebug(-2)). Doing so it useful if you want to suppress errors in a section of your script while still allowing for critical and alert messages.
The attached patch is a simple one line fix that allows negative numbers for setdebug. Note that I did not have a chance to regression test to make sure setdebug(1), etc still work correctly. The patch may also make setdebug(+2) valid, but I went for minimal code change for the patch.
----------------------------------------------------------------------
>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-12-07 02:43
Message:
Hi David,
Patch uploaded, thank you!
Regards,
Bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3593300&group_id=232389
More information about the Devel
mailing list