Skip to content

Commit

Permalink
addressing comments, using logger
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Oct 9, 2023
1 parent 4133a2d commit 0d1d191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdci_data_analysis/flask_app/dispatcher_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0d1d191

Please sign in to comment.