From 6a1b63d73d7ffea6b710dafc6317038a520ba249 Mon Sep 17 00:00:00 2001
From: lb584 <lb584@cam.ac.uk>
Date: Fri, 17 May 2024 13:29:18 +0100
Subject: [PATCH] fixing relative path when no logger config defined

---
 ews/coordinator/utils/processor_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ews/coordinator/utils/processor_utils.py b/ews/coordinator/utils/processor_utils.py
index 4d7815f..789511e 100644
--- a/ews/coordinator/utils/processor_utils.py
+++ b/ews/coordinator/utils/processor_utils.py
@@ -355,7 +355,7 @@ def setup_logging(job_file_path: str, is_live: bool, log_level: str):
         from ews import coordinator
 
 
-        log_config_path_project = os.path.join(os.path.dirname(coordinator.__file__), "..", "configs", "logger", "template_log_config.json")
+        log_config_path_project = os.path.join(os.path.dirname(coordinator.__file__), "..", "..", "configs", "logger", "template_log_config.json")
         print(f"ENVIRONMENT VARIABLE 'LOGGING_CONFIG' IS NOT SET, UISING DEFAULT FILE - {log_config_path_project}")
     else:
         log_config_path_project = os.environ['LOGGING_CONFIG']
-- 
GitLab