log: don't propagate to ancestor loggers
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 25 Sep 2014 09:02:56 +0000 (12:02 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:47:21 +0000 (14:47 +0200)
Change-Id: I6548dcfe5ba2f779b9d9244ad1eb88fa92c2180e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/log.py

index 17cd680d8ea33a2b988eaf68623dbd46b959227a..a8e420a84fcdb42b54d96aa4790ed437db359615 100644 (file)
@@ -105,6 +105,8 @@ class GbpLogger(logging.Logger):
                                                        CRITICAL]))
         for hdlr in self._default_handlers:
             self.addHandler(hdlr)
+        # We don't want to propagate as we add our own handlers
+        self.propagate = False
 
     def set_color(self, color):
         """Set/unset colorized output of the default handlers"""