Browse Source

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

(cherry picked from commit 73088fd871b4b1a292c67e80c55373ed1b891144)
Daniel-Constantin Mierla 5 years ago
parent
commit
765333402b
1 changed files with 4 additions and 0 deletions
  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 {