logger logs events multiple times when you use the default_log_levels

Bug #1170038 reported by Michael Kerrin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Michael Kerrin

Bug Description

If you use the default_log_levels in cinder / nova / etc. and a log event matches these configuration then the event will be logged twice.

For example if you have

default_log_levels=cinder=DEBUG

Then any log message that comes from cinder, with a log level >= DEBUG will be handled twice. In our case we get two messages printed to the log file.

oslo-incuburator needs to be applied to cinder / nova to fix this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/27075

Changed in cinder:
assignee: nobody → Michael Kerrin (michael-kerrin-w)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/27075
Committed: http://github.com/openstack/cinder/commit/a7d47c4ecea903f0706ac313abef888507ce0522
Submitter: Jenkins
Branch: master

commit a7d47c4ecea903f0706ac313abef888507ce0522
Author: Michael Kerrin <email address hidden>
Date: Wed Apr 17 16:41:50 2013 +0000

    Update to latest copy of OSLO incubator

    Specifically I wanted the change be84db3ab24ef94b6ec457bb299d48c51575e8a6
    to oslo-incubator to fix my logging issue.

    I ignored the changes in common/policy.py as this change breaks
    the cinder unit tests.

    Fixes bug: 1170038

    Change-Id: Id72417d58c8f4bf139aa082131154153a175689d

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
Avishay Traeger (avishay-il) wrote : AUTO: Avishay Traeger is out of the office (returning 05/12/2013)

I am out of the office until 05/12/2013.

For technical issues regarding the Storwize/SVC Cinder driver, please
contact: Jie Ping Wu <email address hidden>, Li Min Liu <email address hidden>,
Ronen Kat <email address hidden>
For all other issue, please contact my manager, Dalit Naor
<email address hidden>

Note: This is an automated response to your message "[Bug 1170038] Re:
logger logs events multiple times when you use the default_log_levels"
sent on 26/04/2013 19:28:19.

This is the only notification you will receive while this person is away.

Thierry Carrez (ttx)
Changed in cinder:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.