Merge pull request #703 from wking/701-consolidate-config-log

arbiter: Consolidate configuration logging
This commit is contained in:
Randall Leeds 2014-02-14 15:34:49 -08:00
commit 55afb41532
2 changed files with 7 additions and 4 deletions

1
THANKS
View File

@ -72,3 +72,4 @@ Xie Shi <xieshi@douban.com>
Steven Cummings <estebistec@gmail.com>
Malthe Borch <mborch@gmail.com>
Berker Peksag <berker.peksag@gmail.com>
W. Trevor King <wking@tremily.us>

View File

@ -99,10 +99,12 @@ class Arbiter(object):
self.timeout = self.cfg.timeout
self.proc_name = self.cfg.proc_name
self.log.debug("Current configuration:")
for config, value in sorted(self.cfg.settings.items(),
key=lambda setting: setting[1]):
self.log.debug(" %s: %s", config, value.value)
self.log.debug('Current configuration:\n{0}'.format(
'\n'.join(
' {0}: {1}'.format(config, value.value)
for config, value
in sorted(self.cfg.settings.items(),
key=lambda setting: setting[1]))))
if self.cfg.preload_app:
self.app.wsgi()