This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: lock use in logging
Type: behavior Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Improper locking in logging
View: 9945
Assigned To: vinay.sajip Nosy List: georg.brandl, vinay.sajip
Priority: normal Keywords: easy

Created on 2010-09-25 13:58 by georg.brandl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg117368 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-09-25 13:58
From logging.Logger:

    def removeHandler(self, hdlr):
        """
        Remove the specified handler from this logger.
        """
        if hdlr in self.handlers:
            hdlr.acquire()
            try:
                self.handlers.remove(hdlr)
            finally:
                hdlr.release()

I don't see what the use is for locking the handler.  The only shared resource that is accessed is self.handlers, which is not locked by the handler lock.
msg117369 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-09-25 14:02
Dupe of #9945, sorry.
History
Date User Action Args
2022-04-11 14:57:06adminsetgithub: 54155
2010-09-27 19:52:13eric.araujosetsuperseder: Improper locking in logging
2010-09-25 14:02:14georg.brandlsetstatus: open -> closed
resolution: duplicate
messages: + msg117369
2010-09-25 13:58:37georg.brandlcreate