Log by default in Stream.on_closed
authorHarmon <Harmon758@gmail.com>
Sun, 24 Jan 2021 13:45:03 +0000 (07:45 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 24 Jan 2021 13:45:03 +0000 (07:45 -0600)
tweepy/streaming.py

index 357300196c58bcb9312f3073f159a0d5fba65bb4..ce9af9593907a4344e576d12d1d29256d546b015 100644 (file)
@@ -186,7 +186,7 @@ class Stream:
 
     def on_closed(self, resp):
         """ Called when the response has been closed by Twitter """
-        pass
+        log.error("Stream connection closed by Twitter")
 
     def on_connect(self):
         """Called once connected to streaming server.