Glance: Allow configuring default_log_levels

Allow a custom value for 'default_log_levels' to be set for both the
Glance registry and API.

Allows setting 'eventlet.wsgi.server=DEBUG' which is useful for tracking
each HTTP request.

Also allows setting a log level for any middleware etc.

Change-Id: I2a791b707fd91ba2d4ca7217b5189969a110c0c9
This commit is contained in:
Stuart McLaren 2014-02-26 14:52:37 +00:00
parent 540573fb17
commit a73d459c77
3 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,8 @@ glance:
log-file: ''
- The path of the file to use for logging messages from Glances API server.
- The default is unset, which implies stdout.
default-log-levels:
- Logging: fine tune default log levels
registry:
verbose: False
- Show more verbose log output (sets INFO log level output)
@ -32,3 +34,5 @@ glance:
log-file: ''
- The path of the file to use for logging messages from Glances Registry server.
- The default is unset, which implies stdout.
default-log-levels:
- Logging: fine tune default log levels

View File

@ -40,6 +40,10 @@ notifier_strategy = {{glance.api.notifer-strategy}}
notifier_strategy = {{glance.notifer-strategy}}
{{/glance.notifier-strategy}}
{{#glance.api.default-log-levels}}
default_log_levels = {{glance.api.default-log-levels}}
{{/glance.api.default-log-levels}}
# New style hierarchic (glance.api) params
{{#glance.api.log-file}}
log_file = {{glance.api.log-file}}

View File

@ -25,6 +25,10 @@ log_file = {{glance.registry.log-file}}
log_file = {{glance.log-file}}
{{/glance.log-file}}
{{#glance.registry.default-log-levels}}
default_log_levels = {{glance.registry.default-log-levels}}
{{/glance.registry.default-log-levels}}
bind_host = 0.0.0.0
bind_port = 9191