]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add more details to xml_curl errors
authorMichael Jerris <mike@jerris.com>
Tue, 1 Feb 2011 00:38:57 +0000 (19:38 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 1 Feb 2011 00:38:57 +0000 (19:38 -0500)
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

index 9bf837e1e47f53db2c189dd6bdcfa171570048dc..bc143d7e485625aa1b63a66b2ccc4443412d5dd6 100644 (file)
@@ -293,12 +293,12 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
        }
 
        if (config_data.err) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error encountered!\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error encountered! [%s]\ndata: [%s]\n", binding->url, data);
                xml = NULL;
        } else {
                if (httpRes == 200) {
                        if (!(xml = switch_xml_parse_file(filename))) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Parsing Result!\n");
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Parsing Result! [%s]\ndata: [%s]\n", binding->url, data);
                        }
                } else {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Received HTTP error %ld trying to fetch %s\ndata: [%s]\n", httpRes, binding->url,