2
0
Эх сурвалжийг харах

core dump reported on lowr log level, small warning buffer size on
higher

Jiri Kuthan 18 жил өмнө
parent
commit
51f932b590
2 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 4 4
      main.c
  2. 1 1
      msg_translator.c

+ 4 - 4
main.c

@@ -631,18 +631,18 @@ void handle_sigs()
 		case SIGCHLD:
 			while ((chld=waitpid( -1, &chld_status, WNOHANG ))>0) {
 				if (WIFEXITED(chld_status))
-					LOG(L_INFO, "child process %d exited normally,"
+					LOG(L_DEFAULT, "child process %d exited normally,"
 							" status=%d\n", chld,
 							WEXITSTATUS(chld_status));
 				else if (WIFSIGNALED(chld_status)) {
-					LOG(L_INFO, "child process %d exited by a signal"
+					LOG(L_DEFAULT, "child process %d exited by a signal"
 							" %d\n", chld, WTERMSIG(chld_status));
 #ifdef WCOREDUMP
-					LOG(L_INFO, "core was %sgenerated\n",
+					LOG(L_ALERT, "core was %sgenerated\n",
 							 WCOREDUMP(chld_status) ?  "" : "not " );
 #endif
 				}else if (WIFSTOPPED(chld_status))
-					LOG(L_INFO, "child process %d stopped by a"
+					LOG(L_DEFAULT, "child process %d stopped by a"
 								" signal %d\n", chld,
 								 WSTOPSIG(chld_status));
 			}

+ 1 - 1
msg_translator.c

@@ -301,7 +301,7 @@ static char * warning_builder( struct sip_msg *msg, unsigned int *returned_len)
 	*returned_len=clen;
 	return buf;
 error_overflow:
-	LOG(L_ERR, "ERROR: warning_builder: buffer size exceeded\n");
+	LOG(L_NOTICE, "NOTICE: warning_builder: buffer size exceeded (probably too long URI)\n");
 	*returned_len=0;
 	return 0;
 }