[sr-dev] git:master:c2a27bc0: app_lua: add "NOTICE" loglevel to sr.log

Sebastian Damm damm at sipgate.de
Thu Jun 22 22:02:48 CEST 2017


Module: kamailio
Branch: master
Commit: c2a27bc0875aaaec877c75e9b50fbf41011918b1
URL: https://github.com/kamailio/kamailio/commit/c2a27bc0875aaaec877c75e9b50fbf41011918b1

Author: Sebastian Damm <damm at sipgate.de>
Committer: Sebastian Damm <damm at sipgate.de>
Date: 2017-06-22T16:22:49+02:00

app_lua: add "NOTICE" loglevel to sr.log

---

Modified: src/modules/app_lua/app_lua_sr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c2a27bc0875aaaec877c75e9b50fbf41011918b1.diff
Patch: https://github.com/kamailio/kamailio/commit/c2a27bc0875aaaec877c75e9b50fbf41011918b1.patch

---

diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c
index d23ddaca70..f999de3e37 100644
--- a/src/modules/app_lua/app_lua_sr.c
+++ b/src/modules/app_lua/app_lua_sr.c
@@ -96,6 +96,8 @@ static int lua_sr_log (lua_State *L)
 				LM_DBG("%s", txt);
 			} else if(strcasecmp(level, "info")==0) {
 				LM_INFO("%s", txt);
+			} else if(strcasecmp(level, "notice")==0) {
+				LM_NOTICE("%s", txt);
 			} else if(strcasecmp(level, "warn")==0) {
 				LM_WARN("%s", txt);
 			} else if(strcasecmp(level, "crit")==0) {




More information about the sr-dev mailing list