On Tuesday 26 August 2008, Klaus Darilion wrote:
> > The problem with this functions is, that we loose the informations where
> > the error happened, with is currently logged by the e.g. LM_ERR. This
> > could be mitigated in using macros, but then we have again this string
> > duplication in the code, which is not nice, hm..
>
> What about using global variables which store the error string?

Hi Klaus,

good suggestion. Just create two static strings, and two small macros that 
uses them (for the log level). This should work as expected, i'll test.

Cheers,

Henning

_______________________________________________
Devel mailing list
[email protected]
http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel

Reply via email to