mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-09 14:22:31 +00:00
enh: add user log message on idle shutdown
This commit is contained in:
parent
a7ee001735
commit
05e8492c10
@ -367,6 +367,9 @@ export const instanceService = mkSingleton(
|
|||||||
) {
|
) {
|
||||||
info(`idle for ${DAEMON_PB_IDLE_TTL()}, shutting down`)
|
info(`idle for ${DAEMON_PB_IDLE_TTL()}, shutting down`)
|
||||||
healthyGuard()
|
healthyGuard()
|
||||||
|
userInstanceLogger.info(
|
||||||
|
`Instance has been idle for ${DAEMON_PB_IDLE_TTL()}ms. Hibernating to conserve resources.`,
|
||||||
|
)
|
||||||
await _safeShutdown().catch(error)
|
await _safeShutdown().catch(error)
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user