summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/logging
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-11-26 12:14:00 -0500
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-11-26 12:14:00 -0500
commit611220640b0fd32fcf81f47cdae6882a26bbac0b (patch)
tree918eb4142e7951ed797d6cfddbf24f3ab58a4fca /buildscripts/resmokelib/logging
parent3d220241064ca7a305b5ab60d72dc2ed4307d545 (diff)
downloadmongo-611220640b0fd32fcf81f47cdae6882a26bbac0b.tar.gz
SERVER-31556 Use fixture logger as parent of hook logger.
This enables the hook logger to log messages to logkeeper when --log=buildlogger is specified without needing to start a new dynamic test case.
Diffstat (limited to 'buildscripts/resmokelib/logging')
-rw-r--r--buildscripts/resmokelib/logging/loggers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/logging/loggers.py b/buildscripts/resmokelib/logging/loggers.py
index 821595b79c7..b7dfaed5f92 100644
--- a/buildscripts/resmokelib/logging/loggers.py
+++ b/buildscripts/resmokelib/logging/loggers.py
@@ -149,9 +149,9 @@ class ExecutorRootLogger(RootLogger):
"""Create a new TestQueueLogger that will be a child of the "tests" root logger."""
return TestQueueLogger(test_kind, self.tests_root_logger)
- def new_hook_logger(self, behavior_class, job_num):
+ def new_hook_logger(self, behavior_class, job_num, fixture_logger):
"""Create a new child hook logger."""
- return BaseLogger("%s:job%d" % (behavior_class, job_num), parent=self.tests_root_logger)
+ return BaseLogger("%s:job%d" % (behavior_class, job_num), parent=fixture_logger)
class JobLogger(BaseLogger):