From 32c95f24d0f83b6e4cff310e787727460c3c07eb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 29 Oct 2015 09:34:41 +0800 Subject: [PATCH] worker: reduce some logging levels --- artiq/master/worker.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/artiq/master/worker.py b/artiq/master/worker.py index 9ff40be7d..f08679239 100644 --- a/artiq/master/worker.py +++ b/artiq/master/worker.py @@ -92,8 +92,8 @@ class Worker: try: await self._send(obj, cancellable=False) except: - logger.warning("failed to send terminate command to worker" - " (RID %s), killing", self.rid, exc_info=True) + logger.debug("failed to send terminate command to worker" + " (RID %s), killing", self.rid, exc_info=True) try: self.process.kill() except ProcessLookupError: @@ -103,14 +103,15 @@ class Worker: try: await asyncio.wait_for(self.process.wait(), term_timeout) except asyncio.TimeoutError: - logger.warning("worker did not exit (RID %s), killing", self.rid) + logger.debug("worker did not exit by itself (RID %s), killing", + self.rid) try: self.process.kill() except ProcessLookupError: pass await self.process.wait() else: - logger.debug("worker exited gracefully (RID %s)", self.rid) + logger.debug("worker exited by itself (RID %s)", self.rid) finally: self.io_lock.release()