From f3122008017dc880ebf3d72cccf0f7847ec2f1ce Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 2 Jul 2026 16:49:11 -0700 Subject: [PATCH] Better debug logging for Bulldozer globalThis --- apps/bulldozer-js/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/bulldozer-js/src/index.ts b/apps/bulldozer-js/src/index.ts index 0ab786c7f..30df9a394 100644 --- a/apps/bulldozer-js/src/index.ts +++ b/apps/bulldozer-js/src/index.ts @@ -76,8 +76,9 @@ const bulldozerDb = declareBulldozerDatabase( }), { migrations: schema.migrations }, ); -await traceSpan("bulldozer-js.applyRemainingMigrations", async () => await bulldozerDb.applyRemainingMigrations()); (globalThis as any).bulldozerDb = bulldozerDb; +console.log("Stored bulldozerDb in globalThis for pid " + process.pid); +await traceSpan("bulldozer-js.applyRemainingMigrations", async () => await bulldozerDb.applyRemainingMigrations()); function jsonResponse(body: unknown, init?: ResponseInit) { return new Response(JSON.stringify(body), {