mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #703 from wking/701-consolidate-config-log
arbiter: Consolidate configuration logging
This commit is contained in:
commit
55afb41532
1
THANKS
1
THANKS
@ -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>
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user