Skip to content

Commit 5600ba1

Browse files
committed
logging: fix logger path in config
1 parent 4edeb78 commit 5600ba1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cds_migrator_kit/rdm/migration_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ def _(x): # needed to avoid start time failure with lazy strings
333333

334334
base_path = os.path.dirname(os.path.realpath(cds_migrator_kit.__file__))
335335
logs_dir = os.path.join(base_path, "tmp/logs/")
336-
CDS_MIGRATOR_KIT_LOGS_PATH = logs_dir
336+
CDS_MIGRATOR_KIT_LOGS_PATH = (
337+
os.environ.get("INVENIO_CDS_MIGRATOR_KIT_LOGS_PATH") or logs_dir
338+
)
339+
337340

338341
CDS_MIGRATOR_KIT_STREAM_CONFIG = "cds_migrator_kit/rdm/streams.yaml"
339342

0 commit comments

Comments
 (0)