소스 검색

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