Skip to content

Scheduling infrastructure for absolutely everyone.

chore: add logs for debugging (#19851)

Anik Dhabal Babub0e3cc4dd268
diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts
index efef4570696..d6874e55ac8 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 927f08df59e..ec138cacae1 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