From e2932e097c816ee0abc3da50711d259d805e7fd2 2013-04-13 05:09:20 From: MinRK <benjaminrk@gmail.com> Date: 2013-04-13 05:09:20 Subject: [PATCH] default application logger shouldn't propagate avoids annoying duplicate messages on the root logger under some circumstances. If apps want to hook up their own logging, they should assign the log attribute. --- diff --git a/IPython/config/application.py b/IPython/config/application.py index 6091f52..fee3e97 100644 --- a/IPython/config/application.py +++ b/IPython/config/application.py @@ -146,6 +146,7 @@ class Application(SingletonConfigurable): """ log = logging.getLogger(self.__class__.__name__) log.setLevel(self.log_level) + log.propagate = False _log = log # copied from Logger.hasHandlers() (new in Python 3.2) while _log: if _log.handlers: