Merge "Fixing bug in logger"

This commit is contained in:
Jenkins 2016-08-30 23:27:20 +00:00 committed by Gerrit Code Review
commit a41b5e731f
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ class Runner(object):
@classmethod
def get_logger(cls, template_name):
"""Updates the logger handler for LOG."""
template_name = template_name.replace(os.path.sep, "::")
template_name = template_name.replace(".", "_")
log_file = "{0}.log".format(template_name)
if not cls.log_path:
cls.get_log_dir_name()