From 6f1cb24c63565a61be45f5e732a31f1efaa3f5b7 Mon Sep 17 00:00:00 2001 From: Yared Yemane Date: Mon, 11 May 2026 10:25:53 -0700 Subject: [PATCH] Add runtime config debug logging for test push flow. Log DB_URL alongside FCM_SERVICE_ACCOUNT_KEY during test-push requests and keep compose env-file wiring aligned with current local debug setup. Co-authored-by: Cursor --- docker-compose.yml | 2 ++ internal/web_server/handlers/notification_handler.go | 1 + 2 files changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 831bb74..f004f98 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -101,6 +101,8 @@ services: context: . dockerfile: Dockerfile target: runner + # env_file: + # - .env ports: - "${PORT}:${PORT}" environment: diff --git a/internal/web_server/handlers/notification_handler.go b/internal/web_server/handlers/notification_handler.go index f659d8e..7a61c39 100644 --- a/internal/web_server/handlers/notification_handler.go +++ b/internal/web_server/handlers/notification_handler.go @@ -729,6 +729,7 @@ func (h *Handler) SendTestPushNotification(c *fiber.Ctx) error { 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), + zap.String("db_url", h.Cfg.DbUrl), ) userID, ok := c.Locals("user_id").(int64)