From d7df154059b479f0d7a2754a452682f37864da35 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:59:44 -0400 Subject: [PATCH] fix: Add critical logger for booking created log to prevent stdout buffering issues (#24570) * Add critical logger for booking created log to prevent stdout buffering issues Co-Authored-By: joe@cal.com * Add comment * Separate critialLogger into it's own file --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- apps/web/modules/signup-view.tsx | 4 ++-- .../playwright/dynamic-booking-pages.e2e.ts | 4 ++-- apps/web/playwright/lib/testUtils.ts | 6 ++--- .../playwright/organization/booking.e2e.ts | 4 ++-- .../organization-invitation.e2e.ts | 4 ++-- .../lib/service/RegularBookingService.ts | 3 ++- .../components/locations/Locations.tsx | 2 +- packages/lib/logger.server.ts | 24 +++++++++++++++++++ packages/ui/components/form/select/Select.tsx | 2 +- 9 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 packages/lib/logger.server.ts diff --git a/apps/web/modules/signup-view.tsx b/apps/web/modules/signup-view.tsx index dc903b4930..d457b4b457 100644 --- a/apps/web/modules/signup-view.tsx +++ b/apps/web/modules/signup-view.tsx @@ -313,7 +313,7 @@ export default function Signup({ id="gtm-init-script" // It is strictly not necessary to disable, but in a future update of react/no-danger this will error. // And we don't want it to error here anyways - // eslint-disable-next-line react/no-danger + dangerouslySetInnerHTML={{ __html: `(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); @@ -323,7 +323,7 @@ export default function Signup({ }} />