log when a worker is removed from the pool

This commit is contained in:
Brian Gough 2015-03-12 10:26:52 +00:00
parent 3542918941
commit 3da42df92c

View file

@ -17,6 +17,7 @@ class ASpellWorkerPool
return null
worker = new ASpellWorker(language, @options)
worker.pipe.on 'exit', () =>
logger.log process: worker.pipe.pid, lang: language, "removing aspell worker from pool"
@cleanup()
@PROCESS_POOL.push(worker)
metrics.gauge 'aspellWorkerPool-size', @PROCESS_POOL.length