Skip to content

Commit

Permalink
Fix logging for multiple user/runs (#1462)
Browse files Browse the repository at this point in the history
Signed-off-by: Sachidanand Alle <[email protected]>
  • Loading branch information
SachidanandAlle authored Jun 8, 2023
1 parent ba03fa7 commit ed582de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion monailabel/utils/others/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import re
import shutil
import subprocess
import tempfile
import time
from typing import Dict

Expand Down Expand Up @@ -98,7 +99,7 @@ def init_log_config(log_config, app_dir, log_file, root_level=None):
default_config = os.path.realpath(os.path.join(default_log_dir, "logging.json"))

log_dir = os.path.join(app_dir, "logs")
log_config = os.path.join(log_dir, "logging.json")
log_config = tempfile.NamedTemporaryFile(suffix=".json").name
os.makedirs(log_dir, exist_ok=True)

# if not os.path.exists(log_config):
Expand Down

0 comments on commit ed582de

Please sign in to comment.