[Asterisk-code-review] http.c: Reduce log spam (asterisk[13])
George Joseph
asteriskteam at digium.com
Wed Jul 5 15:33:45 CDT 2017
George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/5962
Change subject: http.c: Reduce log spam
......................................................................
http.c: Reduce log spam
Messages like "fwrite() failed: Connection reset by peer" are no
help whatsoever, especially since they can be caused simply by a
client disconnecting.
* Make those WARNINGs DEBUGs.
Change-Id: I17bd5f3621514152a7b2b263c801324c5e96568b
---
M main/http.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/62/5962/1
diff --git a/main/http.c b/main/http.c
index cccc60b..536d81c 100644
--- a/main/http.c
+++ b/main/http.c
@@ -531,7 +531,7 @@
* behave exactly as documented.
*/
if (fwrite(ast_str_buffer(out), ast_str_strlen(out), 1, ser->f) != 1) {
- ast_log(LOG_ERROR, "fwrite() failed: %s\n", strerror(errno));
+ ast_debug(1, "fwrite() failed: %s\n", strerror(errno));
close_connection = 1;
}
}
@@ -546,7 +546,7 @@
* behave exactly as documented.
*/
if (fwrite(buf, len, 1, ser->f) != 1) {
- ast_log(LOG_WARNING, "fwrite() failed: %s\n", strerror(errno));
+ ast_debug(1, "fwrite() failed: %s\n", strerror(errno));
close_connection = 1;
break;
}
--
To view, visit https://gerrit.asterisk.org/5962
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I17bd5f3621514152a7b2b263c801324c5e96568b
Gerrit-Change-Number: 5962
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170705/1dec6077/attachment.html>
More information about the asterisk-code-review
mailing list