Stop heat services from logging to stderr by default

Change the configuration files to set use_stderr to False by
default.  Oslo's log sets use_stderr to True by default, and
the only reasonable way to override is via the config files.

Change-Id: Ibc4ac3b8cb5d7478260d5d014eb48860bae4bc0b
Fixes: Bug #1146848
This commit is contained in:
Steven Dake 2013-03-05 09:01:56 -07:00
parent 0a19b19fde
commit 8634e15ca1
4 changed files with 34 additions and 28 deletions

View File

@ -11,6 +11,9 @@ bind_host = 0.0.0.0
# Port the bind the server to # Port the bind the server to
bind_port = 8000 bind_port = 8000
# Turn off standard error logging
use_stderr = False
# Log to this file. Make sure the user running heat-api-cfn has # Log to this file. Make sure the user running heat-api-cfn has
# permissions to write to this file! # permissions to write to this file!
log_file = /var/log/heat/api-cfn.log log_file = /var/log/heat/api-cfn.log

View File

@ -5,18 +5,13 @@ verbose = True
# Show debugging output in logs (sets DEBUG log level output) # Show debugging output in logs (sets DEBUG log level output)
debug = True debug = True
# Address to bind the server to # Turn off standard error logging
bind_host = 0.0.0.0 use_stderr = False
# Port the bind the server to
bind_port = 8003
# Log to this file. Make sure the user running heat-api has # Log to this file. Make sure the user running heat-api has
# permissions to write to this file! # permissions to write to this file!
log_file = /var/log/heat/api-cloudwatch.log log_file = /var/log/heat/api-cloudwatch.log
# ================= Syslog Options ============================
# Send logs to syslog (/dev/log) instead of to file specified # Send logs to syslog (/dev/log) instead of to file specified
# by `log_file` # by `log_file`
use_syslog = False use_syslog = False
@ -24,4 +19,10 @@ use_syslog = False
# Facility to use. If unset defaults to LOG_USER. # Facility to use. If unset defaults to LOG_USER.
# syslog_log_facility = LOG_LOCAL0 # syslog_log_facility = LOG_LOCAL0
# Address to bind the server to
bind_host = 0.0.0.0
# Port the bind the server to
bind_port = 8003
rpc_backend=heat.openstack.common.rpc.impl_qpid rpc_backend=heat.openstack.common.rpc.impl_qpid

View File

@ -5,18 +5,13 @@ verbose = True
# Show debugging output in logs (sets DEBUG log level output) # Show debugging output in logs (sets DEBUG log level output)
debug = True debug = True
# Address to bind the server to # Turn off standard error logging
bind_host = 0.0.0.0 use_stderr = False
# Port the bind the server to
bind_port = 8004
# Log to this file. Make sure the user running heat-api-cfn has # Log to this file. Make sure the user running heat-api-cfn has
# permissions to write to this file! # permissions to write to this file!
log_file = /var/log/heat/api.log log_file = /var/log/heat/api.log
# ================= Syslog Options ============================
# Send logs to syslog (/dev/log) instead of to file specified # Send logs to syslog (/dev/log) instead of to file specified
# by `log_file` # by `log_file`
use_syslog = False use_syslog = False
@ -24,6 +19,12 @@ use_syslog = False
# Facility to use. If unset defaults to LOG_USER. # Facility to use. If unset defaults to LOG_USER.
# syslog_log_facility = LOG_LOCAL0 # syslog_log_facility = LOG_LOCAL0
# Address to bind the server to
bind_host = 0.0.0.0
# Port the bind the server to
bind_port = 8004
rpc_backend=heat.openstack.common.rpc.impl_qpid rpc_backend=heat.openstack.common.rpc.impl_qpid

View File

@ -5,6 +5,20 @@ verbose = True
# Show debugging output in logs (sets DEBUG log level output) # Show debugging output in logs (sets DEBUG log level output)
debug = True debug = True
# Turn off standard error logging
use_stderr = False
# Log to this file. Make sure the user running heat-api has
# permissions to write to this file!
log_file = /var/log/heat/engine.log
# Send logs to syslog (/dev/log) instead of to file specified
# by `log_file`
use_syslog = False
# Facility to use. If unset defaults to LOG_USER.
# syslog_log_facility = LOG_LOCAL0
# Keystone role for heat template-defined users # Keystone role for heat template-defined users
heat_stack_user_role = heat_stack_user heat_stack_user_role = heat_stack_user
@ -40,19 +54,6 @@ heat_waitcondition_server_url = http://127.0.0.1:8000/v1/waitcondition
# NOTE : change this from 127.0.0.1 !! # NOTE : change this from 127.0.0.1 !!
heat_watch_server_url = http://127.0.0.1:8003 heat_watch_server_url = http://127.0.0.1:8003
# Log to this file. Make sure the user running heat-api has
# permissions to write to this file!
log_file = /var/log/heat/engine.log
# ================= Syslog Options ============================
# Send logs to syslog (/dev/log) instead of to file specified
# by `log_file`
use_syslog = False
# Facility to use. If unset defaults to LOG_USER.
# syslog_log_facility = LOG_LOCAL0
# The namespace for the custom backend. Must provide class Clients which will be # The namespace for the custom backend. Must provide class Clients which will be
# imported. Defaults to OpenStack if none provided. # imported. Defaults to OpenStack if none provided.
# cloud_backend=deltacloud_heat.client # cloud_backend=deltacloud_heat.client