From: Russell Bryant Date: Tue, 5 Jan 2010 17:13:28 +0000 (+0000) Subject: Change a NOTICE log message to DEBUG where it belongs. X-Git-Tag: 1.4.29-rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e91967f383ea61cb4f805d4157c74800d343f249;p=thirdparty%2Fasterisk.git Change a NOTICE log message to DEBUG where it belongs. (closes issue #16479) Reported by: alexrecarey (closes SWP-577) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@237697 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index f835e11fcd..3fc9faf8fb 100644 --- a/main/utils.c +++ b/main/utils.c @@ -935,7 +935,9 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms) while ((res = ast_poll(&pfd, 1, timeoutms - elapsed)) <= 0) { if (res == 0) { /* timed out. */ - ast_log(LOG_NOTICE, "Timed out trying to write\n"); + if (option_debug) { + ast_log(LOG_DEBUG, "Timed out trying to write\n"); + } return -1; } else if (res == -1) { /* poll() returned an error, check to see if it was fatal */