logfile name depending on port

This commit is contained in:
2025-05-23 13:04:37 +02:00
parent b24384f387
commit 191f0aed80

View File

@ -115,7 +115,7 @@ class Server:
app.debug = True
logging.basicConfig(filename='logifle.log', filemode='w', level=logging.INFO,
logging.basicConfig(filename=f'logfile{port}.log', filemode='w', level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s')
# srv = gevent.wsgi.WSGIServer(('', port), app, keyfile='key.key', certfile='key.crt')