From 75353f8bdd92a095d2f338eef786bffbdcd49758 Mon Sep 17 00:00:00 2001 From: Yared Yemane Date: Mon, 11 May 2026 09:54:22 -0700 Subject: [PATCH] Log FCM service account env value at startup. Add a notification-service startup log to print FCM_SERVICE_ACCOUNT_KEY for runtime verification during push notification troubleshooting. Co-authored-by: Cursor --- internal/services/notification/service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/services/notification/service.go b/internal/services/notification/service.go index e2c3a38..7c51cef 100644 --- a/internal/services/notification/service.go +++ b/internal/services/notification/service.go @@ -68,6 +68,10 @@ func New( config: cfg, } + mongoLogger.Info("FCM_SERVICE_ACCOUNT_KEY value at startup", + zap.String("fcm_service_account_key", cfg.FCMServiceAccountKey), + ) + // Initialize FCM client if service account key is provided if cfg.FCMServiceAccountKey != "" { if err := svc.initFCMClient(); err != nil {