浏览代码

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

(cherry picked from commit 73088fd871b4b1a292c67e80c55373ed1b891144)
Daniel-Constantin Mierla 5 年之前
父节点
当前提交
765333402b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/kemi.c

+ 4 - 0
src/core/kemi.c

@@ -142,8 +142,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 {