Added Website log (start and stop)

This commit is contained in:
2000-Trek 2023-06-22 12:46:15 +02:00
parent 6a348c3108
commit 6d0b42b5a5

View file

@ -35,7 +35,9 @@ finished = None
message = None
def exit_handler():
conn.commit()
conn.close()
website_log.info("Website exited")
sys.exit("Program sucsesfully exited")
#website
@ -314,4 +316,5 @@ def documentation():
def main():
atexit.register(exit_handler)
website_log.info("Website is starting")
socketio.run(app, host='0.0.0.0', port=5000)