projects
/
yaz-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:
83fe7a1
)
Remove the extensive logging
author
Dennis Schafroth
<dennis@indexdata.com>
Tue, 24 Aug 2010 15:51:55 +0000
(17:51 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Tue, 24 Aug 2010 15:51:55 +0000
(17:51 +0200)
src/solr.c
patch
|
blob
|
history
diff --git
a/src/solr.c
b/src/solr.c
index
dac8587
..
a7cdb52
100644
(file)
--- a/
src/solr.c
+++ b/
src/solr.c
@@
-76,12
+76,10
@@
int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup)
odr_intdup(o,
odr_atoi(
(const char *) attr->children->content));
odr_intdup(o,
odr_atoi(
(const char *) attr->children->content));
- yaz_log(YLOG_DEBUG, "SOLR total results: %d ", atoi( attr->children->content));
}
else if (!strcmp((const char *) attr->name, "start"))
{
start = odr_atoi((const char *) attr->children->content);
}
else if (!strcmp((const char *) attr->name, "start"))
{
start = odr_atoi((const char *) attr->children->content);
- yaz_log(YLOG_DEBUG, "SOLR start: %d ", atoi( attr->children->content));
}
}
}
}
}
}
@@
-95,7
+93,6
@@
int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup)
for (node = ptr->children; node; node = node->next)
if (node->type == XML_ELEMENT_NODE)
sr->num_records++;
for (node = ptr->children; node; node = node->next)
if (node->type == XML_ELEMENT_NODE)
sr->num_records++;
- yaz_log(YLOG_DEBUG, "SOLR results in response: %d ", sr->num_records);
sr->records = odr_malloc(o, sizeof(*sr->records) * sr->num_records);
sr->records = odr_malloc(o, sizeof(*sr->records) * sr->num_records);
@@
-119,7
+116,6
@@
int yaz_solr_decode_response(ODR o, Z_HTTP_Response *hres, Z_SRW_PDU **pdup)
record->recordData_buf[buf->use] = '\0';
// TODO Solve the real problem: Making the recordPosition 1-based due to "funny" code in zoom-sru
record->recordPosition = odr_intdup(o, start + offset + 1);
record->recordData_buf[buf->use] = '\0';
// TODO Solve the real problem: Making the recordPosition 1-based due to "funny" code in zoom-sru
record->recordPosition = odr_intdup(o, start + offset + 1);
- yaz_log(YLOG_DEBUG, "SOLR pos=" ODR_INT_PRINTF, *record->recordPosition);
xmlBufferFree(buf);
xmlBufferFree(buf);