diff --git a/main.py b/main.py index 06bce37..cd84347 100644 --- a/main.py +++ b/main.py @@ -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) \ No newline at end of file