From: Harmon Date: Sat, 23 Jan 2021 19:22:08 +0000 (-0600) Subject: Name Thread in Stream X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3a6d89161119bfb6019d13743089c5eb80d1b3a;p=tweepy.git Name Thread in Stream --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 968af32..fe4871b 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -231,8 +231,8 @@ class Stream: def _start(self, *args, threaded=False, **kwargs): self.running = True if threaded: - self._thread = Thread(target=self._run, args=args, kwargs=kwargs, - daemon=self.daemon) + self._thread = Thread(target=self._run, name="Tweepy Stream", + args=args, kwargs=kwargs, daemon=self.daemon) self._thread.start() else: self._run(*args, **kwargs)