Skip to content

Commit d609b65

Browse files
committed
feat: add debugging of GET requests
1 parent b1fbe8c commit d609b65

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ const solrGet = config => path => (query = {}, coreOpt = "") => {
5353
query: queryWithoutCore // DO NOT rename the query parameter!
5454
})
5555

56+
if (config.debug) {
57+
console.debug("SOLR QUERY:")
58+
console.debug(query)
59+
console.debug("SOLR HTTP GET: " + solrUrl)
60+
}
61+
5662
return axios(solrUrl).then(r => r.data)
5763
}
5864

0 commit comments

Comments
 (0)