1
0
Fork 0
forked from bton/matekasse

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