[openstack-glance/el6-grizzly] Do not log DEBUG by default

John Bresnahan buzztroll at fedoraproject.org
Tue Jul 23 19:35:54 UTC 2013


commit 9d6aab94998315be634453f6255fe3ba43e7f65e
Author: John Bresnahan <jbresnah at redhat.com>
Date:   Tue Jul 23 09:25:05 2013 -1000

    Do not log DEBUG by default
    
    rhbz#979734

 openstack-glance-api.init      |    2 +-
 openstack-glance-registry.init |    2 +-
 openstack-glance-scrubber.init |    2 +-
 openstack-glance.spec          |   12 +++++++++++-
 4 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/openstack-glance-api.init b/openstack-glance-api.init
index 549b63d..8a875d2 100644
--- a/openstack-glance-api.init
+++ b/openstack-glance-api.init
@@ -30,7 +30,7 @@ start() {
     [ -x $exec ] || exit 5
     [ -f $config ] || exit 6
     echo -n $"Starting $prog: "
-    daemon --user glance --pidfile $pidfile "$exec --config-file $config --debug --verbose &>/dev/null & echo \$! > $pidfile"
+    daemon --user glance --pidfile $pidfile "$exec --config-file $config &>/dev/null & echo \$! > $pidfile"
     retval=$?
     echo
     [ $retval -eq 0 ] && touch $lockfile
diff --git a/openstack-glance-registry.init b/openstack-glance-registry.init
index 48bab47..4d5cfa4 100644
--- a/openstack-glance-registry.init
+++ b/openstack-glance-registry.init
@@ -30,7 +30,7 @@ start() {
     [ -x $exec ] || exit 5
     [ -f $config ] || exit 6
     echo -n $"Starting $prog: "
-    daemon --user glance --pidfile $pidfile "$exec --config-file $config --debug --verbose &>/dev/null & echo \$! > $pidfile"
+    daemon --user glance --pidfile $pidfile "$exec --config-file $config &>/dev/null & echo \$! > $pidfile"
     retval=$?
     echo
     [ $retval -eq 0 ] && touch $lockfile
diff --git a/openstack-glance-scrubber.init b/openstack-glance-scrubber.init
index 09c1e0b..bc1f706 100644
--- a/openstack-glance-scrubber.init
+++ b/openstack-glance-scrubber.init
@@ -30,7 +30,7 @@ start() {
     [ -x $exec ] || exit 5
     [ -f $user_config ] || exit 7
     echo -n $"Starting $prog: "
-    daemon --user glance --pidfile $pidfile "$exec --daemon --config-file $user_config --verbose &>/dev/null & echo \$! > $pidfile"
+    daemon --user glance --pidfile $pidfile "$exec --daemon --config-file $user_config &>/dev/null & echo \$! > $pidfile"
     retval=$?
     echo
     [ $retval -eq 0 ] && touch $lockfile
diff --git a/openstack-glance.spec b/openstack-glance.spec
index 32fb685..51dbc80 100644
--- a/openstack-glance.spec
+++ b/openstack-glance.spec
@@ -1,6 +1,6 @@
 Name:             openstack-glance
 Version:          2013.1.2
-Release:          3%{?dist}
+Release:          4%{?dist}
 Summary:          OpenStack Image Service
 
 Group:            Applications/System
@@ -122,6 +122,13 @@ echo %{version} > glance/versioninfo
 %build
 
 # Change the default config
+openstack-config --set etc/glance-api.conf DEFAULT debug False
+openstack-config --set etc/glance-api.conf DEFAULT verbose True
+openstack-config --set etc/glance-registry.conf DEFAULT debug False
+openstack-config --set etc/glance-registry.conf DEFAULT verbose True
+openstack-config --set etc/glance-scrubber.conf DEFAULT debug False
+openstack-config --set etc/glance-scrubber.conf DEFAULT verbose True
+
 openstack-config --set etc/glance-registry.conf DEFAULT sql_connection mysql://glance:glance@localhost/glance
 openstack-config --set etc/glance-api.conf DEFAULT sql_connection mysql://glance:glance@localhost/glance
 # Move authtoken configuration out of paste.ini
@@ -289,6 +296,9 @@ fi
 %doc doc/build/html
 
 %changelog
+* Tue Jul 23 2013 John Bresnahan <jbresnah at redhat.com> 2013.1.2-2
+- Do not log DEBUG by default
+
 * Tue Jul 23 2013 Pádraig Brady <pbrady at redhat.com> 2013.1.2-3
 - Depend on python-keystoneclient for auth_token middleware
 


More information about the scm-commits mailing list