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)
committerJun Wang <junbill.wang@samsung.com>
Wed, 27 Jan 2016 17:33:55 +0000 (01:33 +0800)
Change-Id: I6548dcfe5ba2f779b9d9244ad1eb88fa92c2180e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/log.py

index 17cd680..a8e420a 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"""