mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Testing
This commit is contained in:
@@ -2228,13 +2228,13 @@ def answer_external_command():
|
||||
return return_data
|
||||
|
||||
|
||||
def flask_debug():
|
||||
def flask_debug(logger):
|
||||
"""
|
||||
The `flask_debug` function starts a Flask application in debug mode without using the reloader.
|
||||
Do not use for production for fucks sake.
|
||||
"""
|
||||
# trunk-ignore(bandit/B201)
|
||||
app.run(debug=True, use_reloader=False, host=HOST_ADDRESS, port=PORT_ADDRESS)
|
||||
app.run(debug=True, use_reloader=False, host=HOST_ADDRESS, port=PORT_ADDRESS, logger=)
|
||||
|
||||
|
||||
def waitress_run():
|
||||
@@ -2251,7 +2251,7 @@ if __name__ == "__main__":
|
||||
logger.info("Starting discord bot")
|
||||
threads = []
|
||||
#threads.append(threading.Thread(target=waitress_run))
|
||||
threads.append(threading.Thread(target=flask_debug))
|
||||
threads.append(threading.Thread(target=flask_debug, args=(logger)))
|
||||
#threads.append(threading.Thread(target=client.run, args=(TOKEN,)))
|
||||
for worker in threads:
|
||||
worker.start()
|
||||
|
||||
Reference in New Issue
Block a user