logger logs events multiple times when you use the default_log_levels Edit

Bug #1170049 reported by Michael Kerrin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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 nova (master)

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

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

Reviewed: https://review.openstack.org/27076
Committed: http://github.com/openstack/nova/commit/6f91db58e054012c1ec3aac9c446b1c724d2b23c
Submitter: Jenkins
Branch: master

commit 6f91db58e054012c1ec3aac9c446b1c724d2b23c
Author: Michael Kerrin <email address hidden>
Date: Wed Apr 17 17:35:18 2013 +0000

    Update the log module from oslo-incubator

    Contains fix to stop the logger system from logging events twice.

    Also includes PID in default logging_context_format_string

    Fixes bug: 1170049

    Change-Id: I007786604138c41fbcf1127c01339132c56a6aab

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
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.