From c21fa2ee8873f29d0fc656a2f83c36915dfe2844 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 2 Jul 2026 16:52:27 -0700 Subject: [PATCH] Improve info logging for globalThis object --- apps/bulldozer-js/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bulldozer-js/src/index.ts b/apps/bulldozer-js/src/index.ts index 30df9a394..9d8415050 100644 --- a/apps/bulldozer-js/src/index.ts +++ b/apps/bulldozer-js/src/index.ts @@ -77,7 +77,7 @@ const bulldozerDb = declareBulldozerDatabase( { migrations: schema.migrations }, ); (globalThis as any).bulldozerDb = bulldozerDb; -console.log("Stored bulldozerDb in globalThis for pid " + process.pid); +console.log(`Stored bulldozerDb in globalThis for pid ${process.pid}. Run \`kill -USR1 ${process.pid} && node inspect 127.0.0.1:9229\` and then \`exec("globalThis.bulldozerDb")\` to inspect it.`); await traceSpan("bulldozer-js.applyRemainingMigrations", async () => await bulldozerDb.applyRemainingMigrations()); function jsonResponse(body: unknown, init?: ResponseInit) {