Log fileserver startup error for tests

This commit is contained in:
shortcutme 2019-04-15 22:19:00 +02:00
parent 0c0f117bc3
commit 034e104c06
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -104,6 +104,7 @@ from Tor import TorManager
from Content import ContentDb
from util import RateLimit
from Db import Db
from Debug import Debug
def cleanup():
@ -276,7 +277,7 @@ def file_server4(request):
conn.close()
break
except Exception as err:
print(err)
print("FileServer6 startup error", Debug.formatException(err))
assert file_server.running
file_server.ip_incoming = {} # Reset flood protection
@ -305,7 +306,7 @@ def file_server6(request):
conn.close()
break
except Exception as err:
print(err)
print("FileServer6 startup error", Debug.formatException(err))
assert file_server6.running
file_server6.ip_incoming = {} # Reset flood protection