Skip to content

Commit 220ef47

Browse files
committed
🐛 Ensure subject_id in logger
1 parent 247d50d commit 220ef47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CPAC/utils/monitoring/custom_logging.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ def init_loggers(
324324
"""Set up and configure loggers."""
325325
from CPAC.utils.datasource import bidsier_prefix
326326

327+
if "subject_id" not in cpac_config:
328+
cpac_config["subject_id"] = subject_id
329+
327330
set_up_logger(
328331
f"{subject_id}_expectedOutputs",
329332
filename=f'{bidsier_prefix(cpac_config["subject_id"])}_' 'expectedOutputs.yml',

0 commit comments

Comments
 (0)