Sfoglia il codice sorgente

log when a worker is removed from the pool

Brian Gough 11 anni fa
parent
commit
3da42df92c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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