]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Change a NOTICE log message to DEBUG where it belongs.
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Jan 2010 17:13:28 +0000 (17:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Jan 2010 17:13:28 +0000 (17:13 +0000)
(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

main/utils.c

index f835e11fcdddd0b8ade8f65400eb6ecf7483c712..3fc9faf8fb2f925e4cfa56522acc3982e81581c8 100644 (file)
@@ -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 */