From 6d0b42b5a504a7dc2aed4b56f151b1a7e5e561d7 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Thu, 22 Jun 2023 12:46:15 +0200 Subject: [PATCH] Added Website log (start and stop) --- main.py | 3 +++ 1 file changed, 3 insertions(+) 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