[sr-dev] git:5.3:ad4871fa: core: kemi - handle notice log level in KSR.log()

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 16 09:28:00 CET 2020


Module: kamailio
Branch: 5.3
Commit: ad4871fa367406f03063ae1d387d908a494b035b
URL: https://github.com/kamailio/kamailio/commit/ad4871fa367406f03063ae1d387d908a494b035b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-01-16T09:26:37+01:00

core: kemi - handle notice log level in KSR.log()

(cherry picked from commit 73088fd871b4b1a292c67e80c55373ed1b891144)

---

Modified: src/core/kemi.c

---

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

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index 9f477a0e17..7a96254159 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -148,8 +148,12 @@ static int sr_kemi_core_log(sip_msg_t *msg, str *level, str *txt)
 				LM_DBG("%s", txt->s);
 			} else if(strcasecmp(level->s, "info")==0) {
 				LM_INFO("%s", txt->s);
+			} else if(strcasecmp(level->s, "notice")==0) {
+				LM_NOTICE("%s", txt->s);
 			} else if(strcasecmp(level->s, "warn")==0) {
 				LM_WARN("%s", txt->s);
+			} else if(strcasecmp(level->s, "err")==0) {
+				LM_ERR("%s", txt->s);
 			} else if(strcasecmp(level->s, "crit")==0) {
 				LM_CRIT("%s", txt->s);
 			} else {




More information about the sr-dev mailing list