[yt-svn] commit/yt: MatthewTurk: Changing rootLogger to ytLogger
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Dec 13 15:48:05 PST 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/6307771ef4f8/
Changeset: 6307771ef4f8
Branch: yt
User: MatthewTurk
Date: 2014-12-13 21:28:00+00:00
Summary: Changing rootLogger to ytLogger
Affected #: 1 file
diff -r 7de2db743cc279c2bd55eb6eca001f3d41945c71 -r 6307771ef4f87b4772c0fd10dbe79c5814018b65 yt/utilities/parallel_tools/parallel_analysis_interface.py
--- a/yt/utilities/parallel_tools/parallel_analysis_interface.py
+++ b/yt/utilities/parallel_tools/parallel_analysis_interface.py
@@ -113,8 +113,8 @@
# we reset it again so that it includes the processor.
f = logging.Formatter("P%03i %s" % (communicator.rank,
yt.utilities.logger.ufstring))
- if len(yt.utilities.logger.rootLogger.handlers) > 0:
- yt.utilities.logger.rootLogger.handlers[0].setFormatter(f)
+ if len(yt.utilities.logger.ytLogger.handlers) > 0:
+ yt.utilities.logger.ytLogger.handlers[0].setFormatter(f)
if ytcfg.getboolean("yt", "parallel_traceback"):
sys.excepthook = traceback_writer_hook("_%03i" % communicator.rank)
if ytcfg.getint("yt","LogLevel") < 20:
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list