From 1bea8b79698bb950c1a834a858472f3858dfe3f9 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 25 Sep 2014 12:02:56 +0300 Subject: log: don't propagate to ancestor loggers Change-Id: I6548dcfe5ba2f779b9d9244ad1eb88fa92c2180e Signed-off-by: Markus Lehtonen --- gbp/log.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gbp/log.py b/gbp/log.py index 17cd680d..a8e420a8 100644 --- a/gbp/log.py +++ b/gbp/log.py @@ -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""" -- cgit v1.2.3