import { dirname, extname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
+import { exit } from 'node:process'
import Fastify from 'fastify'
import { fastifyPoolifier } from './fastify-poolifier.js'
concurrency: 8
},
errorHandler: (e: Error) => {
- fastify.log.error(e)
+ fastify.log.error('Thread worker error:', e)
}
})
await fastify.listen({ port })
} catch (err) {
fastify.log.error(err)
- process.exit(1)
+ exit(1)
}