mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
added more logging to query request
This commit is contained in:
parent
2b1801167e
commit
99492eb272
1 changed files with 4 additions and 1 deletions
|
|
@ -309,10 +309,13 @@ func (self *WebService) HandleQuery(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if results == nil {
|
||||
log.Println("Empty results")
|
||||
log.Println("Empty results:", pql)
|
||||
http.Error(w, "Error encoding: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
http.Error(w, "Error running query: "+err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
encoder := json.NewEncoder(w)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue