[Asterisk-code-review] app_softhangup.c: Reduce unnecessary warning to verbose message. (asterisk[16])

Richard Mudgett asteriskteam at digium.com
Sun Jan 5 21:07:02 CST 2020


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13511 )


Change subject: app_softhangup.c: Reduce unnecessary warning to verbose message.
......................................................................

app_softhangup.c: Reduce unnecessary warning to verbose message.

Why log a warning for something your dialplan explicitly asked for?

Change-Id: I167b90daf4c7d75dd4b7ef94849f6cef05aa43a7
---
M apps/app_softhangup.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/11/13511/1

diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index 5c143af..2e3c7fc 100644
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -117,7 +117,7 @@
 				*cut = 0;
 		}
 		if (!strcasecmp(name, args.channel)) {
-			ast_log(LOG_WARNING, "Soft hanging %s up.\n", ast_channel_name(c));
+			ast_verb(4, "Soft hanging %s up.\n", ast_channel_name(c));
 			ast_softhangup(c, AST_SOFTHANGUP_EXPLICIT);
 			if (!ast_test_flag(&flags, OPTION_ALL)) {
 				ast_channel_unlock(c);

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13511
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I167b90daf4c7d75dd4b7ef94849f6cef05aa43a7
Gerrit-Change-Number: 13511
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200105/3aa0fe8a/attachment-0001.html>


More information about the asterisk-code-review mailing list