[OpenSER-Devel] changing debug level on the fly
Dan Pascu
dan at ag-projects.com
Thu May 29 10:51:42 CEST 2008
On Thursday 29 May 2008, Juha Heinanen wrote:
> Edson writes:
> > It would be even better if this control could be done not only
> > through MI commands, but also through script commands/variable. It
> > would permit increase and decrease debug level based on script logic
> > given a more granular control over debug info.
>
> that should be possible if debug variable would be mapped to a shared
> memory variable that could then be set using cfgutils functions.
If CHANGEABLE_DEBUG_LEVEL is defined in Makefile.defs (and by default it
is) the variable holding the debug level is kept in shared memory so it
can be changed by the MI debug command. Thus, mapping it to a shm pseudo
variable should be enough to do the trick.
--
Dan
More information about the Devel
mailing list