[Asterisk-code-review] res pjsip pubsub.c: Add useful information to some messages. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Apr 28 17:06:01 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/2729

Change subject: res_pjsip_pubsub.c: Add useful information to some messages.
......................................................................

res_pjsip_pubsub.c: Add useful information to some messages.

Change-Id: Ia0b2e15773894c599e5c5748bbc70e99f434192a
---
M res/res_pjsip_pubsub.c
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/29/2729/1

diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 6700475..481a96c 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -3179,14 +3179,15 @@
 	}
 
 	if (strcmp(data->body_type, generator->body_type)) {
-		ast_log(LOG_WARNING, "Body generator does not accept the type of data provided\n");
+		ast_log(LOG_WARNING, "%s/%s body generator does not accept the type of data provided\n",
+			type, subtype);
 		return -1;
 	}
 
 	body = generator->allocate_body(data->body_data);
 	if (!body) {
-		ast_log(LOG_WARNING, "Unable to allocate a NOTIFY body of type %s/%s\n",
-				type, subtype);
+		ast_log(LOG_WARNING, "%s/%s body generator could not to allocate a body\n",
+			type, subtype);
 		return -1;
 	}
 

-- 
To view, visit https://gerrit.asterisk.org/2729
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0b2e15773894c599e5c5748bbc70e99f434192a
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list