Module: kamailio
Branch: 5.0
Commit: 7f477020368b0f42bfd053f8eb02441b323a610f
URL:
https://github.com/kamailio/kamailio/commit/7f477020368b0f42bfd053f8eb02441…
Author: Sebastian Damm <damm(a)sipgate.de>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-23T11:08:37+02:00
app_lua: add "NOTICE" loglevel to sr.log
(cherry picked from commit c2a27bc0875aaaec877c75e9b50fbf41011918b1)
---
Modified: src/modules/app_lua/app_lua_sr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7f477020368b0f42bfd053f8eb02441…
Patch:
https://github.com/kamailio/kamailio/commit/7f477020368b0f42bfd053f8eb02441…
---
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) {