aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-05 17:13:28 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-05 17:13:28 +0000
commitf257c6e5f301b1f1bb2f2c0237f307c346f0ad8c (patch)
treec1473d0e3b26f8639b19e8b9aeac58c633baab45
parent36862f9c46a0475b5ea9168d27f9034c1439a35e (diff)
Change a NOTICE log message to DEBUG where it belongs.
(closes issue #16479) Reported by: alexrecarey (closes SWP-577) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@237697 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index f835e11fc..3fc9faf8f 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 */