From 0d1d191763aa6f74ce66b0d89125379a4fccf7e3 Mon Sep 17 00:00:00 2001 From: burnout87 Date: Mon, 9 Oct 2023 17:38:04 +0200 Subject: [PATCH] addressing comments, using logger --- cdci_data_analysis/flask_app/dispatcher_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdci_data_analysis/flask_app/dispatcher_query.py b/cdci_data_analysis/flask_app/dispatcher_query.py index 3514a45f0..7b28485a3 100644 --- a/cdci_data_analysis/flask_app/dispatcher_query.py +++ b/cdci_data_analysis/flask_app/dispatcher_query.py @@ -153,7 +153,7 @@ def __init__(self, app, raise RequestNotUnderstood("job_id must be present during a call_back") if data_server_call_back: # this can be set since it's a call_back and job_id and session_id are available - print(f"before setting scratch_dir: job_id: {self.par_dic['job_id']} callback: {data_server_call_back}, resolve_job_url: {resolve_job_url}") + self.logger.info(f"before setting scratch_dir: job_id: {self.par_dic['job_id']} callback: {data_server_call_back}, resolve_job_url: {resolve_job_url}") self.set_scratch_dir(session_id=self.par_dic['session_id'], job_id=self.par_dic['job_id']) self.set_scws_call_back_related_params() else: @@ -745,7 +745,7 @@ def set_scratch_dir(self, session_id, job_id=None, verbose=False): wd=FilePath(file_dir=wd).path) if alias_workdir is not None: wd = wd+'_aliased' - print(f"creating scratch_dir: {wd}") + wd = FilePath(file_dir=wd) wd.mkdir() self.scratch_dir = wd.path