Index: modules/presence_xml/notify_body.c =================================================================== --- modules/presence_xml/notify_body.c (revision 6003) +++ modules/presence_xml/notify_body.c (working copy) @@ -512,7 +512,8 @@ if( xml_array[j]== NULL) { - LM_ERR("while parsing xml body message\n"); + LM_ERR("while parsing xml body message [[%.*s]]\n", + body_array[i]->len, body_array[i]->s); goto error; } j++;