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 <cursoragent@cursor.com>
This commit is contained in:
Yared Yemane 2026-05-11 10:25:53 -07:00
parent cd0ae19d03
commit 6f1cb24c63
2 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,8 @@ services:
context: .
dockerfile: Dockerfile
target: runner
# env_file:
# - .env
ports:
- "${PORT}:${PORT}"
environment:

View File

@ -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)