Add a new --debug-pids option.
This makes the helpers.* log functions prepend getpid() to each line, so you can see which pid did what.
This commit is contained in:
parent
135d1c161a
commit
501b534308
3 changed files with 8 additions and 2 deletions
|
|
@ -35,8 +35,10 @@ def mkdirp(d, mode=None):
|
|||
|
||||
def log_(s):
|
||||
sys.stdout.flush()
|
||||
sys.stderr.write(s)
|
||||
#sys.stderr.write('%d %s' % (os.getpid(), s))
|
||||
if vars.DEBUG_PIDS:
|
||||
sys.stderr.write('%d %s' % (os.getpid(), s))
|
||||
else:
|
||||
sys.stderr.write(s)
|
||||
sys.stderr.flush()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue