[asterisk-commits] rmudgett: branch rmudgett/http_persistent r417701 - /team/rmudgett/http_persi...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 30 19:39:00 CDT 2014


Author: rmudgett
Date: Mon Jun 30 19:38:54 2014
New Revision: 417701

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417701
Log:
Remove debugging BUGBUG messages.

Modified:
    team/rmudgett/http_persistent/main/http.c

Modified: team/rmudgett/http_persistent/main/http.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/http_persistent/main/http.c?view=diff&rev=417701&r1=417700&r2=417701
==============================================================================
--- team/rmudgett/http_persistent/main/http.c (original)
+++ team/rmudgett/http_persistent/main/http.c Mon Jun 30 19:38:54 2014
@@ -517,11 +517,9 @@
 
 	if (close_connection) {
 		ast_debug(1, "HTTP closing session.  status_code:%d\n", status_code);
-		ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  status_code:%d\n", status_code);
 		ast_tcptls_close_session_file(ser);
 	} else {
 		ast_debug(1, "HTTP keeping session open.  status_code:%d\n", status_code);
-		ast_log(LOG_NOTICE, "BUGBUG HTTP keeping session open.  status_code:%d\n", status_code);
 	}
 }
 
@@ -537,7 +535,6 @@
 		ast_free(out);
 		if (ser && ser->f) {
 			ast_debug(1, "HTTP closing session.  Auth OOM\n");
-			ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  Auth OOM\n");
 			ast_tcptls_close_session_file(ser);
 		}
 		return;
@@ -576,7 +573,6 @@
 		ast_free(out);
 		if (ser && ser->f) {
 			ast_debug(1, "HTTP closing session.  error OOM\n");
-			ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  error OOM\n");
 			ast_tcptls_close_session_file(ser);
 		}
 		return;
@@ -888,7 +884,6 @@
 	request->body_read = 1;
 
 	ast_debug(1, "HTTP discarding unused request body\n");
-	ast_log(LOG_NOTICE, "BUGBUG HTTP discarding unused request body\n");
 
 	ast_assert(request->body_length != 0);
 	if (0 < request->body_length) {
@@ -1028,8 +1023,7 @@
 	}
 	request->body_read = 1;
 
-	ast_debug(1, "HTTP consuming request body\n");
-	ast_log(LOG_NOTICE, "BUGBUG HTTP consuming request body\n");
+	ast_debug(2, "HTTP consuming request body\n");
 
 	ast_assert(request->body_length != 0);
 	if (0 < request->body_length) {
@@ -1087,7 +1081,6 @@
 			ast_free(buf);
 			return NULL;
 		}
-		ast_log(LOG_NOTICE, "BUGBUG Chunk header: '%s'\n", header_line);
 		chunk_length = chunked_atoh(header_line, sizeof(header_line));
 		if (chunk_length < 0) {
 			ast_log(LOG_WARNING, "Invalid HTTP chunk size\n");
@@ -1139,7 +1132,6 @@
 			return NULL;
 		}
 		content_length += chunk_length;
-		ast_log(LOG_NOTICE, "BUGBUG Got chunk data\n");
 
 		/* Stay in fread until get the expected CRLF or timeout. */
 		res = fread(header_line, 2, 1, ser->f);
@@ -1160,7 +1152,6 @@
 			ast_free(buf);
 			return NULL;
 		}
-		ast_log(LOG_NOTICE, "BUGBUG Got chunk data line termination\n");
 	}
 
 	/*
@@ -1179,7 +1170,6 @@
 			ast_free(buf);
 			return NULL;
 		}
-		ast_log(LOG_NOTICE, "BUGBUG Chunk trailer header: '%s'\n", header_line);
 
 		/* Trim trailing whitespace */
 		ast_trim_blanks(header_line);
@@ -1187,7 +1177,6 @@
 			/* A blank line ends the chunked-body */
 			break;
 		}
-		ast_log(LOG_NOTICE, "BUGBUG Discarding chunked trailer header: '%s'\n", header_line);
 	}
 
 	buf[content_length] = 0;
@@ -1720,7 +1709,6 @@
 		goto done;
 	}
 	ast_debug(1, "HTTP opening session.  Top level\n");
-	ast_log(LOG_NOTICE, "BUGBUG HTTP opening session.  Top level\n");
 
 	/*
 	 * Here we set TCP_NODELAY on the socket to disable Nagle's algorithm.
@@ -1779,7 +1767,6 @@
 		if (ch == EOF || ungetc(ch, ser->f) == EOF) {
 			/* Between request idle timeout */
 			ast_debug(1, "HTTP idle timeout or peer closed connection.\n");
-			ast_log(LOG_NOTICE, "BUGBUG HTTP idle timeout or peer closed connection.\n");
 			break;
 		}
 
@@ -1801,7 +1788,6 @@
 
 	if (ser->f) {
 		ast_debug(1, "HTTP closing session.  Top level\n");
-		ast_log(LOG_NOTICE, "BUGBUG HTTP closing session.  Top level\n");
 		ast_tcptls_close_session_file(ser);
 	}
 	ao2_ref(ser, -1);




More information about the asterisk-commits mailing list