From 75914514ec3b118b39624dad70ed746e25371dab Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 16 Apr 2022 20:49:29 +0200 Subject: [PATCH] Problem: there is no insight into queries and searches Solution: log searches --- pkg/server/microsub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/microsub.go b/pkg/server/microsub.go index dc364bb..eb1e771 100644 --- a/pkg/server/microsub.go +++ b/pkg/server/microsub.go @@ -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,