This commit is contained in:
Benny 2024-01-09 19:37:19 +01:00
parent 7962d9db00
commit 09352a1e61
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ command=python tasks.py
autorestart=true
priority=900
stopasgroup=true
startsecs = 10
startsecs = 5
startretries = 100
redirect_stderr=true

View file

@ -23,7 +23,7 @@ youtube-search-python==1.6.6
token-bucket==0.3.0
coloredlogs==15.0.1
tronpy==0.4.0
mnemonic==0.20
mnemonic==0.21
qrcode==7.4.2
blinker==1.7.0
flask===3.0.0

View file

@ -183,7 +183,7 @@ class Detector:
def connection_reset_detector(self):
text = "Send exception: ConnectionResetError Connection lost"
if text in self.logs:
if self.logs.count(text) >= 5:
logging.critical("connection lost: %s ", self.func_name())
return True