mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-09 14:22:31 +00:00
chore: improved instance logger cleanup output
This commit is contained in:
parent
b4d4655aac
commit
a3b317c847
@ -197,9 +197,7 @@ export const createPocketbaseService = async (
|
||||
createOptions,
|
||||
(err, data) => {
|
||||
const { StatusCode } = data || {}
|
||||
iLogger.info(`${slug} closed with code ${StatusCode}`)
|
||||
dbg({ err, data })
|
||||
isRunning = false
|
||||
container = undefined
|
||||
unsub()
|
||||
// Filter out Docker status codes https://stackoverflow.com/questions/31297616/what-is-the-authoritative-list-of-docker-run-exit-codes
|
||||
@ -227,7 +225,9 @@ export const createPocketbaseService = async (
|
||||
resolveExit(999)
|
||||
}
|
||||
})
|
||||
|
||||
exitCode.then((code) => {
|
||||
iLogger.info(`Process exited with code ${code}`)
|
||||
})
|
||||
const url = mkInternalUrl(port)
|
||||
if (command === 'serve') {
|
||||
await tryFetch(url, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user