search5 / solrpy

Automatically exported from code.google.com/p/solrpy
Other
40 stars 17 forks source link

Debug mode #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
solrpy currently lacks a way to determine exactly what (encoded) query was 
sent to the SOLR server and what response was received from th SOLR server.

This is very inconvenient when developing against a potentially misbehaving 
SOLR server.

Attached here is a simple patch that adds a "debug" flag parameter to 
SolrConnection constructor.

Usage:

conn = solr.SolrConnection('http://localhost:8080/solr/', debug=True)

From then on, at each request passing through conn, solrpy will log at INFO 
level (using the logging module) both the passed in, encoded parameters and 
the resulting XML, making it easier to determine where a bug lies.

Original issue reported on code.google.com by shywolf9...@gmail.com on 4 Feb 2010 at 10:03

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r55

Original comment by ed.summers on 7 Feb 2010 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by ed.summers on 7 Feb 2010 at 9:27