Problem: there is no insight into queries and searches
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

Solution: log searches
This commit is contained in:
Peter Stuifzand 2022-04-16 20:49:29 +02:00
parent 1606711d98
commit 75914514ec
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -239,6 +239,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
})
return
}
log.Printf("Searching for %s in %s (%d results)", query, channel, len(items))
respondJSON(w, map[string]interface{}{
"query": query,
"items": items,