提交 38ad6b82 编写于 作者: L Lukáš Doktor 提交者: Cleber Rosa

avocado: Rename start_file_logging to start_job_logging

The "start_file_logging" is used when job results are created to add
job file-handlers to logging.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 6335f210
......@@ -405,10 +405,10 @@ class Job(object):
that configure a job failure.
"""
self._setup_job_results()
self.view.start_file_logging(self.logfile,
self.loglevel,
self.unique_id,
self.replay_sourcejob)
self.view.start_job_logging(self.logfile,
self.loglevel,
self.unique_id,
self.replay_sourcejob)
try:
test_suite = self._make_test_suite(self.urls)
except loader.LoaderError, details:
......@@ -445,7 +445,7 @@ class Job(object):
failures = self.test_runner.run_suite(test_suite, mux,
timeout=self.timeout,
replay_map=replay_map)
self.view.stop_file_logging()
self.view.stop_job_logging()
# If it's all good so far, set job status to 'PASS'
if self.status == 'RUNNING':
self.status = 'PASS'
......
......@@ -547,7 +547,7 @@ class View(object):
"""
self._log_ui_info(term_support.warn_header_str(msg), skip_newline)
def start_file_logging(self, logfile, loglevel, unique_id, sourcejob=None):
def start_job_logging(self, logfile, loglevel, unique_id, sourcejob=None):
"""
Start the main file logging.
......@@ -573,7 +573,7 @@ class View(object):
root_logger.setLevel(loglevel)
self.replay_sourcejob = sourcejob
def stop_file_logging(self):
def stop_job_logging(self):
"""
Simple helper for removing a handler from the current logger.
"""
......
......@@ -12,10 +12,10 @@ from avocado.core import job
class _Stream(object):
def start_file_logging(self, param1, param2):
def start_job_logging(self, param1, param2):
pass
def stop_file_logging(self):
def stop_job_logging(self):
pass
def set_tests_info(self, info):
......
......@@ -16,10 +16,10 @@ class ParseXMLError(Exception):
class _Stream(object):
def start_file_logging(self, param1, param2):
def start_job_logging(self, param1, param2):
pass
def stop_file_logging(self):
def stop_job_logging(self):
pass
def set_tests_info(self, info):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册