Skip to content

Commit

Permalink
[FIX] server: worker exit log should mention registry count to help a…
Browse files Browse the repository at this point in the history
…dmins size deployment settings
  • Loading branch information
odony committed Dec 16, 2014
1 parent dcc74a0 commit 05707f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openerp/service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,9 @@ def run(self):
self.multi.pipe_ping(self.watchdog_pipe)
self.sleep()
self.process_work()
_logger.info("Worker (%s) exiting. request_count: %s.", self.pid, self.request_count)
_logger.info("Worker (%s) exiting. request_count: %s, registry count: %s.",
self.pid, self.request_count,
len(openerp.modules.registry.RegistryManager.registries))
self.stop()
except Exception:
_logger.exception("Worker (%s) Exception occured, exiting..." % self.pid)
Expand Down

0 comments on commit 05707f5

Please sign in to comment.