]> granicus.if.org Git - python/commitdiff
logging: NullHandler optimisation.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 26 Sep 2010 11:04:10 +0000 (11:04 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 26 Sep 2010 11:04:10 +0000 (11:04 +0000)
Lib/logging/__init__.py

index 79ec9ef7d592d7b1a484508164af13ba29491fc9..4d9590b922958dc500ef30d8ddfe65660d6cee85 100644 (file)
@@ -1652,9 +1652,15 @@ class NullHandler(Handler):
     a NullHandler and add it to the top-level logger of the library module or
     package.
     """
+    def handle(self, record):
+        pass
+
     def emit(self, record):
         pass
 
+    def createLock(self):
+        self.lock = None
+
 # Warnings integration
 
 _warnings_showwarning = None