Merged revisions 47617 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 14 Nov 2006 16:48:03 +0000 (16:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 14 Nov 2006 16:48:03 +0000 (16:48 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47617 | file | 2006-11-14 11:45:57 -0500 (Tue, 14 Nov 2006) | 2 lines

Use LOG_DEBUG to print out the indication that app_amd is using default settings instead of using LOG_NOTICE. This stops needless logging of this information under normal circumstances. (issue #8361 reported by Seb7)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47618 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_amd.c

index 21e9b90..e5dee1e 100644 (file)
@@ -151,8 +151,8 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data)
                        maximumNumberOfWords = atoi(args.argMaximumNumberOfWords);
                if (!ast_strlen_zero(args.argSilenceThreshold))
                        silenceThreshold = atoi(args.argSilenceThreshold);
-       } else
-               ast_log(LOG_NOTICE, "AMD using the default parameters.\n");
+       } else if (option_debug)
+               ast_log(LOG_DEBUG, "AMD using the default parameters.\n");
 
        /* Now we're ready to roll! */
        if (option_verbose > 2)