mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix: pid now properly shows in debugging output
This commit is contained in:
parent
5cb81bb458
commit
1f683a37cd
@ -327,7 +327,8 @@ export const instanceService = mkSingleton(
|
||||
)
|
||||
}
|
||||
})()
|
||||
const { pid } = childProcess
|
||||
const { pid: _pid } = childProcess
|
||||
const pid = _pid()
|
||||
assertTruthy(pid, `Expected PID here but got ${pid}`)
|
||||
dbg(`PocketBase instance PID: ${pid}`)
|
||||
systemInstanceLogger.breadcrumb(`pid:${pid}`)
|
||||
@ -341,7 +342,7 @@ export const instanceService = mkSingleton(
|
||||
Create the invocation record
|
||||
*/
|
||||
healthyGuard()
|
||||
const invocation = await createInvocation(instance, pid())
|
||||
const invocation = await createInvocation(instance, pid)
|
||||
shutdownManager.add(async () => {
|
||||
await finalizeInvocation(invocation).catch(error)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user