summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/dashboard/main.go2
-rw-r--r--internal/handlers/tabs.go4
2 files changed, 6 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go
index 3d8b330..71f0375 100644
--- a/cmd/dashboard/main.go
+++ b/cmd/dashboard/main.go
@@ -89,6 +89,8 @@ func main() {
googleCalendarClient, err = api.NewGoogleCalendarClient(context.Background(), cfg.GoogleCredentialsFile, cfg.GoogleCalendarID)
if err != nil {
log.Printf("Warning: failed to initialize Google Calendar client: %v", err)
+ } else {
+ log.Printf("Google Calendar client initialized for calendar: %s", cfg.GoogleCalendarID)
}
}
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 {