summaryrefslogtreecommitdiff
path: root/internal/handlers/tabs.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-22 15:36:25 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-22 15:36:25 -1000
commit317d66d9f39d9ab4fbfd592b65ca2548cb072806 (patch)
tree06f8483a2c860ff38f44928381227c3a0bdfcfc7 /internal/handlers/tabs.go
parente97a1bc259d3aa91956ec73a522421cdb621ae57 (diff)
Add debug logging for Google Calendar
Log calendar ID on init and event count on fetch to help diagnose configuration issues. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/handlers/tabs.go')
-rw-r--r--internal/handlers/tabs.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/handlers/tabs.go b/internal/handlers/tabs.go
index b651dac..986222a 100644
--- a/internal/handlers/tabs.go
+++ b/internal/handlers/tabs.go
@@ -189,7 +189,11 @@ func (h *TabsHandler) HandlePlanning(w http.ResponseWriter, r *http.Request) {
if err != nil {
log.Printf("Error fetching calendar events: %v", err)
// Don't fail the whole request, just show empty events
+ } else {
+ log.Printf("Fetched %d calendar events", len(events))
}
+ } else {
+ log.Printf("Google Calendar client not configured")
}
data := struct {