projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9041eed
)
zoom: log Torus record.
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Nov 2011 12:36:02 +0000
(13:36 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 17 Nov 2011 12:36:02 +0000
(13:36 +0100)
src/torus.cpp
patch
|
blob
|
history
diff --git
a/src/torus.cpp
b/src/torus.cpp
index
d6bcd03
..
2a0a36c
100644
(file)
--- a/
src/torus.cpp
+++ b/
src/torus.cpp
@@
-61,10
+61,27
@@
xmlDoc *mp::get_searchable(std::string url_template, const std::string &db,
);
if (http_response && http_response->code == 200 &&
http_response->content_buf)
);
if (http_response && http_response->code == 200 &&
http_response->content_buf)
+ {
+ yaz_log(YLOG_LOG, "Torus: %s OK", url_template.c_str());
doc = xmlParseMemory(http_response->content_buf,
http_response->content_len);
doc = xmlParseMemory(http_response->content_buf,
http_response->content_len);
+
+ }
else
else
- yaz_log(YLOG_WARN, "Could not fetch %s", url_template.c_str());
+ {
+ yaz_log(YLOG_WARN, "Torus: %s FAIL", url_template.c_str());
+ if (http_response)
+ {
+ yaz_log(YLOG_LOG, "HTTP code: %d", http_response->code);
+ }
+ }
+
+ if (http_response && http_response->content_buf)
+ {
+ yaz_log(YLOG_LOG, "HTTP content:\n%.*s",
+ (int) http_response->content_len,
+ http_response->content_buf);
+ }
yaz_url_destroy(url_p);
return doc;
}
yaz_url_destroy(url_p);
return doc;
}