From 6da3dd50acae88d321ae08a3d509a7ebb621b716 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Fri, 4 Sep 2015 21:01:18 +0000 Subject: [PATCH] include thread pid in thread name (linux-specific, not sure what happens on other systems) --- warcprox/writerthread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/warcprox/writerthread.py b/warcprox/writerthread.py index d656951..11f3e3f 100644 --- a/warcprox/writerthread.py +++ b/warcprox/writerthread.py @@ -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)