From d2e0f338363d2260722e0ee5d318251c99447bd9 Mon Sep 17 00:00:00 2001 From: Ahp06 Date: Thu, 7 Feb 2019 19:14:06 +0100 Subject: [PATCH] Changed the logger name --- sumo_project/data.py | 3 +++ sumo_project/runner.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sumo_project/data.py b/sumo_project/data.py index f165bac..48fc606 100644 --- a/sumo_project/data.py +++ b/sumo_project/data.py @@ -83,6 +83,9 @@ class Data: else: phase_def = phase_def[0] + + + return Phase(duration[0], min_duration[0], max_duration[0], phase_def) def add_data_to_areas(self): diff --git a/sumo_project/runner.py b/sumo_project/runner.py index 74c915e..9b4d6da 100644 --- a/sumo_project/runner.py +++ b/sumo_project/runner.py @@ -70,7 +70,7 @@ class RunProcess(multiprocessing.Process): conf_name = self.config.config_filename.replace('.json', '') log_filename = f'{logdir}/{current_date}.log' - self.logger = logging.getLogger(f'{self.data.dir}_{conf_name}') + self.logger = logging.getLogger(f'sumo_logger') self.logger.setLevel(logging.INFO) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")