Procházet zdrojové kódy

modules_k/usrloc: modified syslog messages on bad and non-local sockets
- Changed syslog message on non-local socket from warning to debug,
because non-local socket is ok when nathelper obtains the contacts and
overrides the socket.
- Corrected syslog messages on bad and non-local sockets.

Juha Heinanen před 13 roky
rodič
revize
424d2cabbe
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      modules_k/usrloc/dlist.c

+ 2 - 2
modules_k/usrloc/dlist.c

@@ -223,12 +223,12 @@ static inline int get_all_db_ucontacts(void *buf, int len, unsigned int flags,
 			} else {
 				if (parse_phostport( p, &host.s, &host.len,
 				&port, &proto)!=0) {
-					LM_ERR("bad socket <%s>...ignoring\n", p);
+					LM_ERR("bad socket <%s>...set to 0\n", p);
 					sock = 0;
 				} else {
 					sock = grep_sock_info( &host, (unsigned short)port, proto);
 					if (sock==0) {
-						LM_WARN("non-local socket <%s>...ignoring\n", p);
+						LM_DBG("non-local socket <%s>...set to 0\n", p);
 					}
 				}
 			}