From 49446bc04008bab87ad0c3bbccfb1eee99fa832d Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Mon, 24 Mar 2014 14:44:27 -0700 Subject: [PATCH] Disable oslo.messaging debug logs oslo.messaging debug logs are too verbose, turn them off. A similar patch dropped nova-conductor logs in the gate down from 7MB to under 300K. Cherry-Pick from oslo-incubator since we are in feature freeze: Ia12c003dae196e2220a5f6ea768758a75f2ede23 and Icc61964c6a2b002ac1c8566f174e6a5230674c75 Closes-Bug: #1309626 (cherry picked from commit a24192d90938ea89b8f20132de60e6ad3a4ad447) Change-Id: I9e6456f1c979d9a57fc7fa93fb290c6a26017373 --- cinder/openstack/common/log.py | 1 + etc/cinder/cinder.conf.sample | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/openstack/common/log.py b/cinder/openstack/common/log.py index 59d08a2f189..0898b4b9266 100644 --- a/cinder/openstack/common/log.py +++ b/cinder/openstack/common/log.py @@ -163,6 +163,7 @@ log_opts = [ 'qpid=WARN', 'sqlalchemy=WARN', 'suds=INFO', + 'oslo.messaging=INFO', 'iso8601=WARN', 'requests.packages.urllib3.connectionpool=WARN' ], diff --git a/etc/cinder/cinder.conf.sample b/etc/cinder/cinder.conf.sample index b0b6b6e44bb..ce682a4c685 100644 --- a/etc/cinder/cinder.conf.sample +++ b/etc/cinder/cinder.conf.sample @@ -753,7 +753,7 @@ #logging_exception_prefix=%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s # List of logger=LEVEL pairs (list value) -#default_log_levels=amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN +#default_log_levels=amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN # Publish error events (boolean value) #publish_errors=false