mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Better debug logging for Bulldozer globalThis
This commit is contained in:
parent
784454522d
commit
f312200801
@ -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), {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user