Преглед изворни кода

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