From d09e1447b20038ee43b9269811f28db5cae446df Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Tue, 5 Nov 2013 14:21:46 -0500 Subject: [PATCH] Document default log location in config files It's not immediately obvious where log output will go if the 'log_file' and 'use_syslog' directives are either missing or commented out. This patch updates the documentation in the config files to mention the stdout default. This should help remove any confusion when configuring logging for glance. Change-Id: I36f2a9d30bdee1949e60f413b7f181631c564ed5 Closes-Bug: #1248292 --- etc/glance-api.conf | 7 +++++-- etc/glance-cache.conf | 5 +++++ etc/glance-registry.conf | 7 +++++-- etc/glance-scrubber.conf | 7 +++++-- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/etc/glance-api.conf b/etc/glance-api.conf index edae35bac0..8cbee9626b 100644 --- a/etc/glance-api.conf +++ b/etc/glance-api.conf @@ -34,8 +34,11 @@ bind_host = 0.0.0.0 # Port the bind the API server to bind_port = 9292 -# Log to this file. Make sure you do not set the same log -# file for both the API and registry servers! +# Log to this file. Make sure you do not set the same log file for both the API +# and registry servers! +# +# If `log_file` is omitted and `use_syslog` is false, then log messages are +# sent to stdout as a fallback. log_file = /var/log/glance/api.log # Backlog requests when creating socket diff --git a/etc/glance-cache.conf b/etc/glance-cache.conf index ae28ebcacb..134f6d7e5c 100644 --- a/etc/glance-cache.conf +++ b/etc/glance-cache.conf @@ -5,6 +5,11 @@ # Show debugging output in logs (sets DEBUG log level output) #debug = False +# Log to this file. Make sure you do not set the same log file for both the API +# and registry servers! +# +# If `log_file` is omitted and `use_syslog` is false, then log messages are +# sent to stdout as a fallback. log_file = /var/log/glance/image-cache.log # Send logs to syslog (/dev/log) instead of to file specified by `log_file` diff --git a/etc/glance-registry.conf b/etc/glance-registry.conf index 6a2f577559..ff1d24e719 100644 --- a/etc/glance-registry.conf +++ b/etc/glance-registry.conf @@ -11,8 +11,11 @@ bind_host = 0.0.0.0 # Port the bind the registry server to bind_port = 9191 -# Log to this file. Make sure you do not set the same log -# file for both the API and registry servers! +# Log to this file. Make sure you do not set the same log file for both the API +# and registry servers! +# +# If `log_file` is omitted and `use_syslog` is false, then log messages are +# sent to stdout as a fallback. log_file = /var/log/glance/registry.log # Backlog requests when creating socket diff --git a/etc/glance-scrubber.conf b/etc/glance-scrubber.conf index d02095054f..5c5e8d4ccf 100644 --- a/etc/glance-scrubber.conf +++ b/etc/glance-scrubber.conf @@ -5,8 +5,11 @@ # Show debugging output in logs (sets DEBUG log level output) #debug = False -# Log to this file. Make sure you do not set the same log -# file for both the API and registry servers! +# Log to this file. Make sure you do not set the same log file for both the API +# and registry servers! +# +# If `log_file` is omitted and `use_syslog` is false, then log messages are +# sent to stdout as a fallback. log_file = /var/log/glance/scrubber.log # Send logs to syslog (/dev/log) instead of to file specified by `log_file`