include thread pid in thread name (linux-specific, not sure what happens on other systems)

This commit is contained in:
Noah Levitt 2015-09-04 21:01:18 +00:00
parent 44792151c9
commit 6da3dd50ac

View File

@ -38,6 +38,7 @@ class WarcWriterThread(threading.Thread):
def run(self):
try:
self.setName('WarcWriterThread(tid={})'.format(warcprox.gettid()))
while not self.stop.is_set():
try:
recorded_url = self.recorded_url_q.get(block=True, timeout=0.5)