]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Stop heat services from logging to stderr by default
authorSteven Dake <sdake@redhat.com>
Tue, 5 Mar 2013 16:01:56 +0000 (09:01 -0700)
committerSteven Dake <sdake@redhat.com>
Tue, 5 Mar 2013 16:01:56 +0000 (09:01 -0700)
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
etc/heat/heat-api-cfn.conf
etc/heat/heat-api-cloudwatch.conf
etc/heat/heat-api.conf
etc/heat/heat-engine.conf

index 176f4b2be8dc2fde18d1cb1624309e6303c3f7e6..b2d3ec9b66087083afd89b8fcbcbd0a1b6658ff3 100644 (file)
@@ -11,6 +11,9 @@ bind_host = 0.0.0.0
 # Port the bind the server to
 bind_port = 8000
 
+# Turn off standard error logging
+use_stderr = False
+
 # Log to this file. Make sure the user running heat-api-cfn has
 # permissions to write to this file!
 log_file = /var/log/heat/api-cfn.log
index 564a0412b309fb2f4b778cd03311bde1e63dd840..27f64e9af0ca5a76f4ece86e891cc31c8235511a 100644 (file)
@@ -5,18 +5,13 @@ verbose = True
 # Show debugging output in logs (sets DEBUG log level output)
 debug = True
 
-# Address to bind the server to
-bind_host = 0.0.0.0
-
-# Port the bind the server to
-bind_port = 8003
+# 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/api-cloudwatch.log
 
-# ================= Syslog Options ============================
-
 # Send logs to syslog (/dev/log) instead of to file specified
 # by `log_file`
 use_syslog = False
@@ -24,4 +19,10 @@ use_syslog = False
 # Facility to use. If unset defaults to LOG_USER.
 # 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
index 1a48a49e4c65bebeaf5bb88d7289b836b4f7ff8a..f27adff220df09d66c97e5e76a1b0c2b7a89ab24 100644 (file)
@@ -5,18 +5,13 @@ verbose = True
 # Show debugging output in logs (sets DEBUG log level output)
 debug = True
 
-# Address to bind the server to
-bind_host = 0.0.0.0
-
-# Port the bind the server to
-bind_port = 8004
+# Turn off standard error logging
+use_stderr = False
 
 # Log to this file. Make sure the user running heat-api-cfn has
 # permissions to write to this file!
 log_file = /var/log/heat/api.log
 
-# ================= Syslog Options ============================
-
 # Send logs to syslog (/dev/log) instead of to file specified
 # by `log_file`
 use_syslog = False
@@ -24,10 +19,16 @@ use_syslog = False
 # Facility to use. If unset defaults to LOG_USER.
 # 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
 
 
 
 # Uncomment this if you're using a custom cloud backend:
 # [paste_deploy]
-# flavor = custombackend
\ No newline at end of file
+# flavor = custombackend
index 81e2e2070def1419bd73a337e9e5d1353e1899e2..25bbaa728176432d8865398f034e72389b37c5e4 100644 (file)
@@ -5,6 +5,20 @@ verbose = True
 # Show debugging output in logs (sets DEBUG log level output)
 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
 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 !!
 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
 # imported. Defaults to OpenStack if none provided.
 # cloud_backend=deltacloud_heat.client