Skip to content

Commit 8915591

Browse files
committed
fix logging in PY2
1 parent 671ea05 commit 8915591

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
216216
self.memory_gb, free_processors, self.processors)
217217
if self._stats != stats:
218218
tasks_list_msg = ''
219+
219220
if logger.level <= INFO:
220221
running_tasks = [' * %s' % self.procs[jobid].fullname
221222
for _, jobid in self.pending_tasks]
@@ -225,7 +226,8 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
225226
tasks_list_msg = indent(tasks_list_msg, ' ' * 21)
226227
logger.info('[MultiProc] Running %d tasks, and %d jobs ready. Free '
227228
'memory (GB): %0.2f/%0.2f, Free processors: %d/%d.%s',
228-
*stats, tasks_list_msg)
229+
len(self.pending_tasks), len(jobids), free_memory_gb, self.memory_gb,
230+
free_processors, self.processors, tasks_list_msg)
229231
self._stats = stats
230232

231233
if free_memory_gb < 0.01 or free_processors == 0:

0 commit comments

Comments
 (0)