瀏覽代碼

log when a worker is removed from the pool

Brian Gough 11 年之前
父節點
當前提交
3da42df92c
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      services/spelling/app/coffee/ASpellWorkerPool.coffee

+ 1 - 0
services/spelling/app/coffee/ASpellWorkerPool.coffee

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