diff --git a/src/developer_config.yaml b/src/developer_config.yaml index 0c270a1d4..12918c03e 100644 --- a/src/developer_config.yaml +++ b/src/developer_config.yaml @@ -23,7 +23,7 @@ runlog_writer: log_path: "data/log" hdfs_paths: root: None - logs_foldername: "resdev/logs/run_logs" + logs_foldername: "/ons/rdbe_dev/logs/run_logs" snapshot_path: "/ons/rdbe_dev/snapshot-202012-002-fba5c4ba-fb8c-4a62-87bb-66c725eea5fd.json" postcode_masterlist: "/ons/rdbe_dev/mappers/2023/ONSPD_NOV_2022_UK.csv" postcode_path: "/ons/rdbe_dev/staging/staging_qa/postcode_validation" @@ -31,6 +31,7 @@ hdfs_paths: ultfoc_mapper_path: "/ons/rdbe_dev/mappers/2023/BERD_2022_ultfoc_anon.csv" cora_mapper_path: "/ons/rdbe_dev/mappers/2023/cora_mapper.csv" staging_output_path: "/ons/rdbe_dev/staging/staging_qa/full_responses_qa" + output_path: "/ons/rdbe_dev/outputs" cellno_path: "/ons/rdbe_dev/mappers/2023/berd_2022_cellno_coverage.csv" itl_path: "/ons/rdbe_dev/mappers/2023/itl.csv" history_path: "/ons/rdbe_dev/BERD_V7_Anonymised" diff --git a/src/utils/runlog.py b/src/utils/runlog.py index 093e096c6..3a52deae5 100644 --- a/src/utils/runlog.py +++ b/src/utils/runlog.py @@ -36,11 +36,8 @@ def __init__( self.timestamp = self._generate_time() def _make_main_path(self): - """Creating a local runlog folder if it doesn't exist""" - if self.environment == "hdfs": - logs_folder = f"/user/{self.user}/{self.logs_folder}" - elif self.environment == "network": - logs_folder = self.logs_folder + """Returns the log folder from the config""" + logs_folder = self.logs_folder return logs_folder def _create_folder(self):