[sr-dev] git:master:ee91829d: dispatcher: module load error because of wrong default socket should be logges as LM_ERR

Henning Westerholt hw at skalatan.de
Fri Aug 9 10:48:08 CEST 2019


Module: kamailio
Branch: master
Commit: ee91829dc65d7062e1aba5069bcd37e0b62a8795
URL: https://github.com/kamailio/kamailio/commit/ee91829dc65d7062e1aba5069bcd37e0b62a8795

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-08-09T09:29:41+02:00

dispatcher: module load error because of wrong default socket should be logges as LM_ERR

---

Modified: src/modules/dispatcher/dispatcher.c

---

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

---

diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 101927099a..6c7588d7a9 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -347,7 +347,7 @@ static int mod_init(void)
 		ds_default_sockinfo =
 				grep_sock_info(&host, (unsigned short)port, proto);
 		if(ds_default_sockinfo == 0) {
-			LM_WARN("non-local socket <%.*s>\n", ds_default_socket.len,
+			LM_ERR("non-local socket <%.*s>\n", ds_default_socket.len,
 					ds_default_socket.s);
 			return -1;
 		}




More information about the sr-dev mailing list