Skip to content

Commit 5b367f2

Browse files
committed
LOG: Write node name when running
1 parent 386162b commit 5b367f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/pipeline/engine/nodes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _run_command(self, execute, copyfiles=True):
633633
if copyfiles:
634634
self._copyfiles_to_wd(cwd, execute)
635635

636-
message = 'Running a "%s" interface'
636+
message = 'Running node "%s" (a "%s" interface)'
637637
if issubclass(self._interface.__class__, CommandLine):
638638
try:
639639
cmd = self._interface.cmdline
@@ -644,7 +644,8 @@ def _run_command(self, execute, copyfiles=True):
644644
with open(cmdfile, 'wt') as fd:
645645
print(cmd + "\n", file=fd)
646646
message += ', a CommandLine Interface with command:\n%s' % cmd
647-
logger.info(message + '.', self._interface.__class__.__name__)
647+
logger.info(message + '.', self.name,
648+
self._interface.__class__.__name__)
648649
try:
649650
result = self._interface.run()
650651
except Exception as msg:

0 commit comments

Comments
 (0)