Module: kamailio Branch: 5.3 Commit: ad4871fa367406f03063ae1d387d908a494b035b URL: https://github.com/kamailio/kamailio/commit/ad4871fa367406f03063ae1d387d908a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/ad4871fa367406f03063ae1d387d908a... Patch: https://github.com/kamailio/kamailio/commit/ad4871fa367406f03063ae1d387d908a...
---
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 {