Skip to content

Commit 7464456

Browse files
committed
more beautiful messaging2
1 parent bf0d75c commit 7464456

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runListener.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, mastodon):
4242
self.receivedHeartbeat = False
4343

4444
def stream_with_reconnection(self):
45-
retry_delay = 5
45+
retry_delay = 10
4646
max_retries = 10
4747
retry_count = 0
4848

@@ -52,8 +52,8 @@ def stream_with_reconnection(self):
5252
break
5353
except Exception as e:
5454
self.receivedHeartbeat = False
55-
print("Error: ", e)
56-
print("Versuche, die Verbindung nach 10 Sekunden erneut herzustellen...")
55+
logging.warning("Error: ", e)
56+
logging.info("Versuche, die Verbindung nach 10 Sekunden erneut herzustellen...")
5757
retry_count += 1
5858
time.sleep(retry_delay)
5959

0 commit comments

Comments
 (0)