debug + verbose

This commit is contained in:
James Page 2014-04-12 17:55:29 +01:00
parent 78df6dad85
commit 3acece0450
4 changed files with 17 additions and 6 deletions

View File

@ -41,6 +41,14 @@ options:
default: False
description: |
If set to True, supporting services will log to syslog.
debug:
default: False
type: boolean
description: Enable debug logging
verbose:
default: False
type: boolean
description: Enable verbose logging
# HA configuration settings
vip:
type: string

View File

@ -79,7 +79,8 @@ CONFIG_FILES = OrderedDict([
'hook_contexts': [context.SharedDBContext(ssl_dir=GLANCE_CONF_DIR),
context.PostgresqlDBContext(),
context.IdentityServiceContext(),
context.SyslogContext()],
context.SyslogContext(),
context.OSConfigFlagContext()],
'services': ['glance-registry']
}),
(GLANCE_API_CONF, {
@ -90,7 +91,8 @@ CONFIG_FILES = OrderedDict([
glance_contexts.CephGlanceContext(),
glance_contexts.ObjectStoreContext(),
glance_contexts.HAProxyContext(),
context.SyslogContext()],
context.SyslogContext(),
context.OSConfigFlagContext()],
'services': ['glance-api']
}),
(GLANCE_API_PASTE_INI, {

View File

@ -1,7 +1,7 @@
[DEFAULT]
verbose = True
verbose = {{ verbose }}
use_syslog = {{ use_syslog }}
debug = True
debug = {{ debug }}
{% if rbd_pool -%}
default_store = rbd

View File

@ -1,7 +1,8 @@
[DEFAULT]
verbose = True
verbose = {{ verbose }}
use_syslog = {{ use_syslog }}
debug = True
debug = {{ debug }}
bind_host = 0.0.0.0
bind_port = 9191
log_file = /var/log/glance/registry.log