Internal lock release not logged when using lockutils.lock

Bug #1312813 reported by Salvatore Orlando
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Low
Salvatore Orlando

Bug Description

When using the synchronized decorator, the release of the lock is logged in the finally block:

https://github.com/openstack/oslo-incubator/blob/master/openstack/common/lockutils.py#L325

However, when using directly lockutils.lock, no release message is printed.
Adding a release message might be useful for debug purposes.

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/90411
Committed: https://git.openstack.org/cgit/openstack/oslo-incubator/commit/?id=0f495ee138ad33b85d7692bc404835620cf702c6
Submitter: Jenkins
Branch: master

commit 0f495ee138ad33b85d7692bc404835620cf702c6
Author: Salvatore Orlando <email address hidden>
Date: Fri Apr 25 08:56:59 2014 -0700

    Emit a log statement when releasing internal lock

    The log statement, with debug severity, is added to the lock
    function in order to ensure lock release is logged also when
    using lockutils.lock

    Change-Id: I362cc743f49ddb6476f9d2b21a3ed02f96fcc135
    Closes-Bug: 1312813

Changed in oslo:
status: New → Fix Committed
Changed in oslo:
assignee: nobody → Salvatore Orlando (salvatore-orlando)
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → juno-1
status: Fix Committed → Fix Released
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.