Skip to content

Commit

Permalink
[BugFix] Replace print with logger in worker (#4224)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Nov 27, 2023
1 parent 309409d commit 8bf1c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/workers/submission_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def delete_old_temp_directories(prefix='tmp'):
creation_time = os.path.getctime(dir_path)
dir_creation_times[dir_path] = creation_time
except Exception as e:
print(f"Error getting creation time for directory {dir_path}: {e}")
logger.info(f"Error getting creation time for directory {dir_path}: {e}")

latest_dir = max(dir_creation_times, key=dir_creation_times.get, default=None)

Expand Down

0 comments on commit 8bf1c3d

Please sign in to comment.