[IMP] workers request count on exit

bzr revid: al@openerp.com-20121211012436-gnr3vxhoye1xf0dh
This commit is contained in:
Antony Lesuisse 2012-12-11 02:24:36 +01:00
parent 0a29f55843
commit c4fcf264c0
1 changed files with 2 additions and 2 deletions

View File

@ -302,10 +302,10 @@ class Worker(object):
self.multi.pipe_ping(self.watchdog_pipe)
self.sleep()
self.process_work()
_logger.info("Worker (%s) exiting...",self.pid)
_logger.info("Worker (%s) exiting. request_count: %s.", self.pid, self.request_count)
self.stop()
except Exception,e:
_logger.exception("Worker (%s) Exception occured, exiting..."%self.pid)
_logger.exception("Worker (%s) Exception occured, exiting..." % self.pid)
# should we use 3 to abort everything ?
sys.exit(1)