From: Joshua Colp Date: Tue, 14 Nov 2006 16:45:57 +0000 (+0000) Subject: Use LOG_DEBUG to print out the indication that app_amd is using default settings... X-Git-Tag: 1.4.0-beta4~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=159c54a5e9ee1e6b0ccc699e912912dc316a357a;p=thirdparty%2Fasterisk.git 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/branches/1.4@47617 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_amd.c b/apps/app_amd.c index 21e9b90faf..e5dee1efc5 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -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)