enh: add user log message on idle shutdown

This commit is contained in:
Ben Allfree 2024-02-20 01:49:39 +00:00
parent a7ee001735
commit 05e8492c10

View File

@ -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 {