[sr-dev] logging from lua

Juha Heinanen jh at tutpro.com
Thu Apr 14 19:44:52 CEST 2011


looks like xlog module is not supported by lua.  so i tried to use
sr.log function.

when i make in lua script call

sr.log(2, "Executing lua script\n");

i get to syslog

Apr 14 20:39:17 sip /usr/sbin/sip-proxy[23495]: ERROR: app_lua [app_lua_sr.c:92]: Executing lua script

why ERROR level, since according to

http://sip-router.org/wiki/cookbooks/core-cookbook/devel#debug

level 2 means L_INFO?

-- juha




More information about the sr-dev mailing list