Skip to content

Commit 1f40d15

Browse files
committed
fix: improve logging in clean_up_tmp_ajet_dir function
1 parent 48e7594 commit 1f40d15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ajet/backbone/warm_up.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ def clean_up_tmp_ajet_dir(config):
6464
return
6565
current_time = time.time()
6666
ttl = 4 * 3600
67+
print("Clean up old IPC socket files in /tmp/ajet directory.")
6768
try:
6869
for filename in os.listdir(tmp_dir):
6970
if not filename.endswith(".sock"):
7071
continue
7172

7273
file_path = os.path.join(tmp_dir, filename)
7374
try:
74-
print(current_time - os.path.getmtime(file_path))
7575
if current_time - os.path.getmtime(file_path) > ttl:
7676
os.remove(file_path)
7777
except OSError:

0 commit comments

Comments
 (0)