Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen committed Jun 12, 2024
1 parent 7da2935 commit 06950fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/ui_backend_service/data/cache/get_log_file_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def fetch_logs(task: Task, to_path: str, logtype: str, force_reload: bool = Fals
# TODO: This could theoretically be a part of the Metaflow client instead.
paths = []
stream = 'stderr' if logtype == STDERR else 'stdout'
log_location = task.metadata_dict.get('log_location_%s' % stream)
meta_dict = task.metadata_dict
log_location = meta_dict.get('log_location_%s' % stream)

os.makedirs(to_path, exist_ok=True)
log_paths = {}
Expand Down Expand Up @@ -239,7 +240,6 @@ def fetch_logs(task: Task, to_path: str, logtype: str, force_reload: bool = Fals
log_paths[name] = os.path.join(to_path, name)
else:
# MFLog support
meta_dict = task.metadata_dict
ds_type = meta_dict.get("ds-type")
ds_root = meta_dict.get("ds-root")
if ds_type is None or ds_root is None:
Expand Down

0 comments on commit 06950fd

Please sign in to comment.