[sr-dev] git:master:73088fd8: core: kemi - handle notice log level in KSR.log()
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 9 18:14:43 CET 2020
Module: kamailio
Branch: master
Commit: 73088fd871b4b1a292c67e80c55373ed1b891144
URL: https://github.com/kamailio/kamailio/commit/73088fd871b4b1a292c67e80c55373ed1b891144
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-01-09T18:14:15+01:00
core: kemi - handle notice log level in KSR.log()
---
Modified: src/core/kemi.c
---
Diff: https://github.com/kamailio/kamailio/commit/73088fd871b4b1a292c67e80c55373ed1b891144.diff
Patch: https://github.com/kamailio/kamailio/commit/73088fd871b4b1a292c67e80c55373ed1b891144.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