4e5e5c77cb6bac09f0da5ae36a19e4677c65a0e3 max Fri Jul 15 15:38:12 2016 -0700 forgot a line in last commit diff --git src/utils/uniprotToTab src/utils/uniprotToTab index 7e7df20..b438132 100755 --- src/utils/uniprotToTab +++ src/utils/uniprotToTab @@ -91,30 +91,31 @@ if self.tasksPerMsg!=0 and self.i % self.tasksPerMsg == 0: donePercent = (self.i*100) / self.taskCount #print "".join(5*[chr(8)]), sys.stderr.write("%.2d%% " % donePercent) sys.stderr.flush() self.i += count if self.i==self.taskCount: print "" def setupLogging(progName, options, parser=None, logFileName=None, \ debug=False, fileLevel=logging.DEBUG, minimumLog=False, fileMode="w"): """ direct logging to a file and also to stdout, depending on options (debug, verbose, jobId, etc) """ assert(progName!=None) global debugMode + stdoutLevel=logging.INFO if options==None: stdoutLevel=logging.DEBUG elif options.debug or debug: stdoutLevel=logging.DEBUG debugMode = True rootLog = logging.getLogger('') rootLog.setLevel(fileLevel) logging.root.handlers = [] # setup file logger if logFileName != None and logFileName!="": fh = logging.FileHandler(logFileName) fh.setLevel(logging.DEBUG)