Skip to content

Commit 21c0b26

Browse files
committed
fix: remove duplicate log entries
1 parent 135ce49 commit 21c0b26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ def run(self, updatehash=False):
443443
)
444444

445445
# Check hash, check whether run should be enforced
446-
logger.info('[Node] Setting-up "%s" in "%s".', self.fullname, outdir)
446+
if not isinstance(self, MapNode):
447+
logger.info(f'[Node] Setting-up "{self.fullname}" in "{outdir}".')
447448
cached, updated = self.is_cached()
448449

449450
# If the node is cached, check on pklz files and finish
@@ -534,7 +535,6 @@ def run(self, updatehash=False):
534535
# Tear-up after success
535536
shutil.move(hashfile_unfinished, hashfile_unfinished.replace("_unfinished", ""))
536537
write_node_report(self, result=result, is_mapnode=isinstance(self, MapNode))
537-
logger.info('[Node] Finished "%s".', self.fullname)
538538
return result
539539

540540
def _get_hashval(self):

0 commit comments

Comments
 (0)