[sr-dev] git:master:5326e1fe: Merge pull request #1162 from SipSeb/master

GitHub noreply at github.com
Thu Jun 22 22:02:49 CEST 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2017-06-22T22:02:42+02:00

Merge pull request #1162 from SipSeb/master

app_lua: add "NOTICE" loglevel to sr.log

---

Modified: src/modules/app_lua/app_lua_sr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5326e1fe459983a32e62646c7bd8e6fc2d63f4f4.diff
Patch: https://github.com/kamailio/kamailio/commit/5326e1fe459983a32e62646c7bd8e6fc2d63f4f4.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