Skip to content

Commit 82383c5

Browse files
committed
config: adapt migration logs path
1 parent 4422769 commit 82383c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: cds_migrator_kit/rdm/migration_config.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ 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+
)
337339

338340
CDS_MIGRATOR_KIT_STREAM_CONFIG = "cds_migrator_kit/rdm/streams.yaml"
339341

0 commit comments

Comments
 (0)