From cd0ae19d032683aa6cef99c568b2573ff4d646ab Mon Sep 17 00:00:00 2001 From: Yared Yemane Date: Mon, 11 May 2026 09:56:45 -0700 Subject: [PATCH] Log FCM env value on test-push requests. Add request-time logging in the test push endpoint so FCM_SERVICE_ACCOUNT_KEY can be verified during each API call, not only at service startup. Co-authored-by: Cursor --- internal/web_server/handlers/notification_handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/web_server/handlers/notification_handler.go b/internal/web_server/handlers/notification_handler.go index 9f98cc7..f659d8e 100644 --- a/internal/web_server/handlers/notification_handler.go +++ b/internal/web_server/handlers/notification_handler.go @@ -727,6 +727,9 @@ func (h *Handler) RegisterDeviceToken(c *fiber.Ctx) error { func (h *Handler) SendTestPushNotification(c *fiber.Ctx) error { title := c.FormValue("title", "Test Push Notification") message := c.FormValue("message", "This is a test push notification from Yimaru Backend") + h.mongoLoggerSvc.Info("FCM_SERVICE_ACCOUNT_KEY value during test-push call", + zap.String("fcm_service_account_key", h.Cfg.FCMServiceAccountKey), + ) userID, ok := c.Locals("user_id").(int64) if !ok || userID == 0 {