Browse code

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

Jiri Kuthan authored on 13/11/2007 15:56:31
Showing 2 changed files
... ...
@@ -631,18 +631,18 @@ void handle_sigs()
631 631
 		case SIGCHLD:
632 632
 			while ((chld=waitpid( -1, &chld_status, WNOHANG ))>0) {
633 633
 				if (WIFEXITED(chld_status))
634
-					LOG(L_INFO, "child process %d exited normally,"
634
+					LOG(L_DEFAULT, "child process %d exited normally,"
635 635
 							" status=%d\n", chld,
636 636
 							WEXITSTATUS(chld_status));
637 637
 				else if (WIFSIGNALED(chld_status)) {
638
-					LOG(L_INFO, "child process %d exited by a signal"
638
+					LOG(L_DEFAULT, "child process %d exited by a signal"
639 639
 							" %d\n", chld, WTERMSIG(chld_status));
640 640
 #ifdef WCOREDUMP
641
-					LOG(L_INFO, "core was %sgenerated\n",
641
+					LOG(L_ALERT, "core was %sgenerated\n",
642 642
 							 WCOREDUMP(chld_status) ?  "" : "not " );
643 643
 #endif
644 644
 				}else if (WIFSTOPPED(chld_status))
645
-					LOG(L_INFO, "child process %d stopped by a"
645
+					LOG(L_DEFAULT, "child process %d stopped by a"
646 646
 								" signal %d\n", chld,
647 647
 								 WSTOPSIG(chld_status));
648 648
 			}
... ...
@@ -301,7 +301,7 @@ static char * warning_builder( struct sip_msg *msg, unsigned int *returned_len)
301 301
 	*returned_len=clen;
302 302
 	return buf;
303 303
 error_overflow:
304
-	LOG(L_ERR, "ERROR: warning_builder: buffer size exceeded\n");
304
+	LOG(L_NOTICE, "NOTICE: warning_builder: buffer size exceeded (probably too long URI)\n");
305 305
 	*returned_len=0;
306 306
 	return 0;
307 307
 }