From 791c97ac682fb7a204434246a1ee3a7fbf8c73b5 2017-09-22 21:57:00 From: rs2 Date: 2017-09-22 21:57:00 Subject: [PATCH] #10821: Suppress print output on BackgroundJobManager.new --- diff --git a/IPython/lib/backgroundjobs.py b/IPython/lib/backgroundjobs.py index 1fc81d7..ebd70d3 100644 --- a/IPython/lib/backgroundjobs.py +++ b/IPython/lib/backgroundjobs.py @@ -35,7 +35,7 @@ import threading from IPython import get_ipython from IPython.core.ultratb import AutoFormattedTB -from logging import error +from logging import error, debug class BackgroundJobManager(object): @@ -190,7 +190,7 @@ class BackgroundJobManager(object): job.num = len(self.all)+1 if self.all else 0 self.running.append(job) self.all[job.num] = job - print('Starting job # %s in a separate thread.' % job.num) + debug('Starting job # %s in a separate thread.' % job.num) job.start() return job