From b0e3cc4dd268dde9469ad087e26563801cedca17 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Mon, 10 Mar 2025 09:04:52 +0530 Subject: [PATCH] chore: add logs for debugging (#19851) --- packages/features/bookings/lib/handleNewBooking.ts | 3 +++ packages/lib/EventManager.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index efef457069..d6874e55ac 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -885,6 +885,9 @@ async function handler( } : getLocationValueForDB(locationBodyString, eventType.locations); + log.info("locationBodyString", locationBodyString); + log.info("event type locations", eventType.locations); + const customInputs = getCustomInputsResponses(reqBody, eventType.customInputs); const teamDestinationCalendars: DestinationCalendar[] = []; diff --git a/packages/lib/EventManager.ts b/packages/lib/EventManager.ts index 927f08df59..ec138cacae 100644 --- a/packages/lib/EventManager.ts +++ b/packages/lib/EventManager.ts @@ -197,6 +197,7 @@ export default class EventManager { const calVideoKeys = calVideoKeysSchema.safeParse(calVideo?.keys); if (calVideo?.enabled && calVideoKeys.success) evt["location"] = "integrations:daily"; + log.warn("Falling back to cal video as no location is set"); } // Fallback to Cal Video if Google Meet is selected w/o a Google Cal