mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-09 22:32: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,
|
createOptions,
|
||||||
(err, data) => {
|
(err, data) => {
|
||||||
const { StatusCode } = data || {}
|
const { StatusCode } = data || {}
|
||||||
iLogger.info(`${slug} closed with code ${StatusCode}`)
|
|
||||||
dbg({ err, data })
|
dbg({ err, data })
|
||||||
isRunning = false
|
|
||||||
container = undefined
|
container = undefined
|
||||||
unsub()
|
unsub()
|
||||||
// Filter out Docker status codes https://stackoverflow.com/questions/31297616/what-is-the-authoritative-list-of-docker-run-exit-codes
|
// 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)
|
resolveExit(999)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
exitCode.then((code) => {
|
||||||
|
iLogger.info(`Process exited with code ${code}`)
|
||||||
|
})
|
||||||
const url = mkInternalUrl(port)
|
const url = mkInternalUrl(port)
|
||||||
if (command === 'serve') {
|
if (command === 'serve') {
|
||||||
await tryFetch(url, {
|
await tryFetch(url, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user