Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#251 setdebug Negative Levels

1.8.x
closed-accepted
core (47)
5
2012-12-07
2012-12-06
David Sanders
No

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.

Discussion

  • David Sanders
    David Sanders
    2012-12-06

    Allow negative setdebug() parameters

     
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed-accepted
     
  • Hi David,

    Patch uploaded, thank you!

    Regards,
    Bogdan