]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_pubsub.c: Add useful information to some messages. 29/2729/1
authorRichard Mudgett <rmudgett@digium.com>
Thu, 28 Apr 2016 21:06:57 +0000 (16:06 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 28 Apr 2016 22:06:01 +0000 (17:06 -0500)
Change-Id: Ia0b2e15773894c599e5c5748bbc70e99f434192a

res/res_pjsip_pubsub.c

index 6700475672780b7321c64a063a0b5b9d22e9b428..481a96c873d2c0cc8a5095d6816f7386b8035838 100644 (file)
@@ -3179,14 +3179,15 @@ int ast_sip_pubsub_generate_body_content(const char *type, const char *subtype,
        }
 
        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;
        }