summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-09-25 12:02:56 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:47:21 +0200
commit1bea8b79698bb950c1a834a858472f3858dfe3f9 (patch)
treeb41563cbe96725a455d08ee41b5babc65cd7bdb5
parent215c6e237efee30bea6e3f27230b6bd38e167511 (diff)
downloadgit-buildpackage-1bea8b79698bb950c1a834a858472f3858dfe3f9.tar.gz
git-buildpackage-1bea8b79698bb950c1a834a858472f3858dfe3f9.tar.bz2
git-buildpackage-1bea8b79698bb950c1a834a858472f3858dfe3f9.zip
log: don't propagate to ancestor loggers
Change-Id: I6548dcfe5ba2f779b9d9244ad1eb88fa92c2180e Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--gbp/log.py2
1 files changed, 2 insertions, 0 deletions
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"""